Module: Stall::Models::Variant
- Extended by:
- ActiveSupport::Concern
- Included in:
- Variant
- Defined in:
- app/models/stall/models/variant.rb
Instance Method Summary collapse
Instance Method Details
#currency ⇒ Object
31 32 33 |
# File 'app/models/stall/models/variant.rb', line 31 def currency @currency ||= Money::Currency.new(Stall.config.default_currency) end |
#weight ⇒ Object
35 36 37 |
# File 'app/models/stall/models/variant.rb', line 35 def weight read_attribute(:weight).presence || product.try(:weight) end |