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