Sha256: 34480cb59410629c4d7586560c455e6938ae3e446e6f1273bc2ea63d8656c37c

Contents?: true

Size: 577 Bytes

Versions: 22

Compression:

Stored size: 577 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|
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.extend(EffectiveEventsEventRegistration::Base)
      end
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
effective_events-0.3.1 lib/effective_events/engine.rb
effective_events-0.3.0 lib/effective_events/engine.rb
effective_events-0.2.8 lib/effective_events/engine.rb
effective_events-0.2.7 lib/effective_events/engine.rb
effective_events-0.2.6 lib/effective_events/engine.rb
effective_events-0.2.5 lib/effective_events/engine.rb
effective_events-0.2.4 lib/effective_events/engine.rb
effective_events-0.2.3 lib/effective_events/engine.rb
effective_events-0.2.2 lib/effective_events/engine.rb
effective_events-0.2.1 lib/effective_events/engine.rb
effective_events-0.2.0 lib/effective_events/engine.rb
effective_events-0.1.10 lib/effective_events/engine.rb
effective_events-0.1.9 lib/effective_events/engine.rb
effective_events-0.1.8 lib/effective_events/engine.rb
effective_events-0.1.7 lib/effective_events/engine.rb
effective_events-0.1.6 lib/effective_events/engine.rb
effective_events-0.1.5 lib/effective_events/engine.rb
effective_events-0.1.4 lib/effective_events/engine.rb
effective_events-0.1.3 lib/effective_events/engine.rb
effective_events-0.1.2 lib/effective_events/engine.rb