Sha256: c7a497161cd4c6bc78a134b379b9a8f1870fbfb7997c83f17cc020436e926316

Contents?: true

Size: 539 Bytes

Versions: 43

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Event
    class Configuration
      def subscriber_registry
        @subscriber_registry ||= Spree::Event::SubscriberRegistry.new
      end

      attr_writer :adapter, :suffix, :autoload_subscribers

      def autoload_subscribers
        @autoload_subscribers.nil? ? true : !!@autoload_subscribers
      end

      def adapter
        @adapter ||= Spree::Event::Adapters::ActiveSupportNotifications
      end

      def suffix
        @suffix ||= '.spree'
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
solidus_core-3.4.6 lib/spree/event/configuration.rb
solidus_core-3.4.5 lib/spree/event/configuration.rb
solidus_core-3.4.4 lib/spree/event/configuration.rb
solidus_core-3.3.4 lib/spree/event/configuration.rb
solidus_core-3.2.9 lib/spree/event/configuration.rb
solidus_core-3.2.8 lib/spree/event/configuration.rb
solidus_core-3.3.3 lib/spree/event/configuration.rb
solidus_core-3.4.3 lib/spree/event/configuration.rb
solidus_core-3.4.2 lib/spree/event/configuration.rb
solidus_core-3.2.7 lib/spree/event/configuration.rb
solidus_core-3.3.2 lib/spree/event/configuration.rb
solidus_core-3.4.1 lib/spree/event/configuration.rb
solidus_core-3.4.0 lib/spree/event/configuration.rb
solidus_core-3.3.1 lib/spree/event/configuration.rb
solidus_core-3.2.6 lib/spree/event/configuration.rb
solidus_core-3.1.9 lib/spree/event/configuration.rb
solidus_core-3.3.0 lib/spree/event/configuration.rb
solidus_core-3.2.5 lib/spree/event/configuration.rb
solidus_core-3.2.4 lib/spree/event/configuration.rb
solidus_core-3.2.3 lib/spree/event/configuration.rb