Class: Spree::Current

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
app/models/spree/current.rb

Instance Method Summary collapse

Instance Method Details

#storeObject



5
6
7
# File 'app/models/spree/current.rb', line 5

def store
  super || Spree::Store.default
end

#webhooks_subscribersObject



9
10
11
# File 'app/models/spree/current.rb', line 9

def webhooks_subscribers
  super || store&.active_webhooks_subscribers || Spree::Webhooks::Subscriber.none
end