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.0.1 lib/spree/event/configuration.rb
solidus_core-3.0.0 lib/spree/event/configuration.rb
solidus_core-3.0.0.rc2 lib/spree/event/configuration.rb