Skip to main content

pallastrade-decorators

Use when the user wants to extend a PallasTrade model, controller, helper, or service class without forking — add an association to PallasTrade::Product, add a method to PallasTrade::Order, override a validation, add a scope, prepend a before_action, hook into create. Common phrasings include "add brand to product", "decorate PallasTrade::X", "ProductDecorator", "OrderDecorator", "Module#prepend", "pallastrade:model_decorator", "extend an existing PallasTrade model", "add a method to PallasTrade::Order", "override PallasTrade behavior", "monkey patch PallasTrade". Provides the decorator pattern, the generator, the prepended(base) idiom, and the gotchas. Mentions when NOT to decorate — events for after-save side effects, dependencies for service swaps, the resource generator for whole new models.

跳到安装

来源信息

仓库
stevenbian9266-cyber/pallastrade
最近来源活动
2026年7月23日 16:32
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。