Module: Spree::ProductDecorator
- Defined in:
- app/models/spree/product_decorator.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/models/spree/product_decorator.rb', line 3 def self.included(base) base.class_eval do delegate :attachments, to: :find_or_build_master has_many :variant_attachments, -> { order(:position) }, source: :attachments, through: :variants_including_master end end |