spree-decorators
Installation
SKILL.md
Spree Decorators
Commands use the Spree CLI (
spree …). On a classic Rails app without the CLI, usebin/rails g …from the app root. Paths assume the Rails app lives inserver/.
Decorators change existing Spree classes from your app with Ruby's Module#prepend, using a Spree filename convention and two generators. They couple you to Spree internals — use them for structural changes (association, validation, scope, read-only helper method, a narrowed controller scope), not for behavior.