Sha256: ecdf63f9c74cc6c01730b41db88638028e18f8459c87eacf3ddeba7e1b69c777
Contents?: true
Size: 865 Bytes
Versions: 23
Compression:
Stored size: 865 Bytes
Contents
module EffectiveCpd class Engine < ::Rails::Engine engine_name 'effective_cpd' # Set up our default configuration options. initializer 'effective_cpd.defaults', before: :load_config_initializers do |app| eval File.read("#{config.root}/config/effective_cpd.rb") end # Include acts_as_addressable concern and allow any ActiveRecord object to call it initializer 'effective_cpd.active_record' do |app| app.config.to_prepare do ActiveRecord::Base.extend(EffectiveCpdUser::Base) ActiveRecord::Base.extend(EffectiveCpdStatement::Base) ActiveRecord::Base.extend(EffectiveCpdAudit::Base) ActiveRecord::Base.extend(EffectiveCpdAuditLevel::Base) ActiveRecord::Base.extend(EffectiveCpdAuditReview::Base) ActiveRecord::Base.extend(EffectiveCpdBulkAudit::Base) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems