Sha256: c282999800d5fabb309e650090f9c061683eb0031f4d1e944d2de2a1f3b284b5

Contents?: true

Size: 828 Bytes

Versions: 11

Compression:

Stored size: 828 Bytes

Contents

module EffectiveLearndash
  class Engine < ::Rails::Engine
    engine_name 'effective_learndash'

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

    initializer 'effective_learndash.assets' do |app|
      app.config.assets.precompile += ['effective_learndash_manifest.js', 'effective_learndash/*']
    end

    # Include acts_as_addressable concern and allow any ActiveRecord object to call it
    initializer 'effective_learndash.active_record' do |app|
      app.config.to_prepare do
        ActiveRecord::Base.extend(EffectiveLearndashOwner::Base)
        ActiveRecord::Base.extend(EffectiveLearndashCourseRegistration::Base)
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_learndash-0.6.1 lib/effective_learndash/engine.rb
effective_learndash-0.6.0 lib/effective_learndash/engine.rb
effective_learndash-0.5.2 lib/effective_learndash/engine.rb
effective_learndash-0.5.1 lib/effective_learndash/engine.rb
effective_learndash-0.5.0 lib/effective_learndash/engine.rb
effective_learndash-0.4.0 lib/effective_learndash/engine.rb
effective_learndash-0.3.3 lib/effective_learndash/engine.rb
effective_learndash-0.3.2 lib/effective_learndash/engine.rb
effective_learndash-0.3.1 lib/effective_learndash/engine.rb
effective_learndash-0.3.0 lib/effective_learndash/engine.rb
effective_learndash-0.2.1 lib/effective_learndash/engine.rb