Module: Spree::Purchase::Channel
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/spree/purchase/channel.rb
Instance Method Summary collapse
Instance Method Details
#ensure_channel_presence ⇒ Object
12 13 14 15 16 |
# File 'app/models/concerns/spree/purchase/channel.rb', line 12 def ensure_channel_presence return if channel_id.present? self.channel = store&.default_channel end |