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 に表示されている付属ファイルをお読みください。