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