Module: Spree::IntegrationsConcern Deprecated
- Included in:
- Base
- Defined in:
- app/models/concerns/spree/integrations_concern.rb
Overview
Deprecated.
Use Current.integrations; removed in Spree 6.3.
Nothing in Spree calls these — the per-request integration set lives on Current — but the concern sits on Spree::Base, so every model has carried the methods as public surface since they shipped.
Instance Method Summary collapse
Instance Method Details
#store_integration(name) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/models/concerns/spree/integrations_concern.rb', line 17 def store_integration(name) Spree::Deprecation.warn( 'Spree::IntegrationsConcern#store_integration is deprecated and will be removed in Spree 6.3. ' \ 'Use Spree::Current.integrations.find { |integration| integration.type.to_s.demodulize.underscore == name } instead.' ) Spree::Current.integrations.find { |integration| integration.type.to_s.demodulize.underscore == name } end |
#store_integrations ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/models/concerns/spree/integrations_concern.rb', line 8 def store_integrations Spree::Deprecation.warn( 'Spree::IntegrationsConcern#store_integrations is deprecated and will be removed in Spree 6.3. ' \ 'Use Spree::Current.integrations instead.' ) Spree::Current.integrations end |