Sha256: 6986dab056ec3909acae4697f88c5bbf7103afcae9e791213f128a011c29bc29

Contents?: true

Size: 624 Bytes

Versions: 97

Compression:

Stored size: 624 Bytes

Contents

module EffectiveEvents
  class Engine < ::Rails::Engine
    engine_name 'effective_events'

    # Set up our default configuration options.
    initializer 'effective_events.defaults', before: :load_config_initializers do |app|
      eval File.read("#{config.root}/config/effective_events.rb")
    end

    # Include concern and allow any ActiveRecord object to call it
    initializer 'effective_events.active_record' do |app|
      app.config.to_prepare do
        ActiveSupport.on_load :active_record do
          ActiveRecord::Base.extend(EffectiveEventsEventRegistration::Base)
        end
      end
    end

  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
effective_events-2.31.4 lib/effective_events/engine.rb
effective_events-2.31.3 lib/effective_events/engine.rb
effective_events-2.31.2 lib/effective_events/engine.rb
effective_events-2.31.1 lib/effective_events/engine.rb
effective_events-2.31.0 lib/effective_events/engine.rb
effective_events-2.30.3 lib/effective_events/engine.rb
effective_events-2.30.2 lib/effective_events/engine.rb
effective_events-2.30.1 lib/effective_events/engine.rb
effective_events-2.30.0 lib/effective_events/engine.rb
effective_events-2.29.6 lib/effective_events/engine.rb
effective_events-2.29.5 lib/effective_events/engine.rb
effective_events-2.29.4 lib/effective_events/engine.rb
effective_events-2.29.3 lib/effective_events/engine.rb
effective_events-2.29.2 lib/effective_events/engine.rb
effective_events-2.29.1 lib/effective_events/engine.rb
effective_events-2.29.0 lib/effective_events/engine.rb
effective_events-2.28.3 lib/effective_events/engine.rb
effective_events-2.28.2 lib/effective_events/engine.rb
effective_events-2.28.1 lib/effective_events/engine.rb
effective_events-2.28.0 lib/effective_events/engine.rb