Class: Spree::Current
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- Spree::Current
- Defined in:
- app/models/spree/current.rb
Instance Method Summary collapse
Instance Method Details
#store ⇒ Object
5 6 7 |
# File 'app/models/spree/current.rb', line 5 def store super || Spree::Store.default end |
#webhooks_subscribers ⇒ Object
9 10 11 |
# File 'app/models/spree/current.rb', line 9 def webhooks_subscribers super || store&.active_webhooks_subscribers || Spree::Webhooks::Subscriber.none end |