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