Sha256: 2fa74789f5f76be64541cad201077af86760791ee146d727947b74efce6e4c7e

Contents?: true

Size: 609 Bytes

Versions: 24

Compression:

Stored size: 609 Bytes

Contents

module Brightcontent
  class Engine < ::Rails::Engine
    isolate_namespace Brightcontent

    initializer "Brightcontent precompile hook", :group => :all do |app|
      app.config.assets.precompile += ['brightcontent/brightcontent.js', 'brightcontent/brightcontent.css']
    end

    initializer "Add ActiveRecord column" do
      ActiveSupport.on_load(:active_record) do
        include ModelExtensions
      end
    end

    initializer "Set default locale from main app" do
      ActiveSupport.on_load(:after_initialize) do
        Brightcontent.locale ||= I18n.default_locale
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 lib/brightcontent/engine.rb
brightcontent-core-2.5.1 lib/brightcontent/engine.rb
brightcontent-core-2.5.0 lib/brightcontent/engine.rb
brightcontent-core-2.4.6 lib/brightcontent/engine.rb
brightcontent-core-2.4.5 lib/brightcontent/engine.rb
brightcontent-core-2.4.4 lib/brightcontent/engine.rb
brightcontent-core-2.4.3 lib/brightcontent/engine.rb
brightcontent-core-2.4.2 lib/brightcontent/engine.rb
brightcontent-core-2.4.1 lib/brightcontent/engine.rb
brightcontent-core-2.4.0 lib/brightcontent/engine.rb
brightcontent-core-2.3.4 lib/brightcontent/engine.rb
brightcontent-core-2.3.3 lib/brightcontent/engine.rb
brightcontent-core-2.3.2 lib/brightcontent/engine.rb
brightcontent-core-2.3.1 lib/brightcontent/engine.rb
brightcontent-core-2.3.0 lib/brightcontent/engine.rb
brightcontent-core-2.2.2 lib/brightcontent/engine.rb
brightcontent-core-2.2.1 lib/brightcontent/engine.rb
brightcontent-core-2.2.0 lib/brightcontent/engine.rb
brightcontent-core-2.1.5 lib/brightcontent/engine.rb
brightcontent-core-2.1.4 lib/brightcontent/engine.rb