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

Version Path
effective_cpd-1.7.2 lib/effective_cpd/engine.rb
effective_cpd-1.7.1 lib/effective_cpd/engine.rb
effective_cpd-1.7.0 lib/effective_cpd/engine.rb
effective_cpd-1.6.5 lib/effective_cpd/engine.rb
effective_cpd-1.6.4 lib/effective_cpd/engine.rb
effective_cpd-1.6.3 lib/effective_cpd/engine.rb
effective_cpd-1.6.2 lib/effective_cpd/engine.rb
effective_cpd-1.6.1 lib/effective_cpd/engine.rb
effective_cpd-1.6.0 lib/effective_cpd/engine.rb
effective_cpd-1.5.1 lib/effective_cpd/engine.rb
effective_cpd-1.5.0 lib/effective_cpd/engine.rb
effective_cpd-1.4.8 lib/effective_cpd/engine.rb
effective_cpd-1.4.7 lib/effective_cpd/engine.rb
effective_cpd-1.4.6 lib/effective_cpd/engine.rb
effective_cpd-1.4.5 lib/effective_cpd/engine.rb
effective_cpd-1.4.4 lib/effective_cpd/engine.rb
effective_cpd-1.4.3 lib/effective_cpd/engine.rb
effective_cpd-1.4.2 lib/effective_cpd/engine.rb
effective_cpd-1.4.1 lib/effective_cpd/engine.rb
effective_cpd-1.4.0 lib/effective_cpd/engine.rb