Sha256: b5b58d136227bd3e8a15c51b6fba971137ba66c61f54f87670010bc1db010906
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
module AbAdmin class Engine < ::Rails::Engine engine_name 'ab_admin' initializer 'ab_admin.assets_precompile', group: :all do |app| app.config.assets.precompile += AbAdmin.assets end initializer 'ab_admin.setup' do ::Mime::Type.register 'application/vnd.ms-excel', :xlsx ActiveSupport.on_load :active_record do ActiveRecord::Base.send :include, ActiveModel::ForbiddenAttributesProtection ActiveRecord::Base.send :include, AbAdmin::CarrierWave::Glue ActiveRecord::Base.send :include, AbAdmin::Utils::Mysql ActiveRecord::Base.send :include, AbAdmin::Concerns::DeepCloneable ActiveRecord::Base.send :include, AbAdmin::Concerns::Utilities ActiveRecord::Base.send :include, AbAdmin::Concerns::Silencer ActiveRecord::Base.send :extend, AbAdmin::Concerns::Silencer ActiveRecord::Base.send :include, AbAdmin::Concerns::Validations ActiveRecord::Base.send :include, AbAdmin::Concerns::Fileuploads ActiveRecord::Base.send :extend, AbAdmin::Concerns::TranslationsMacro ActiveRecord::Base.send :extend, EnumField::EnumeratedAttribute end ActiveSupport.on_load :action_mailer do ActionMailer::Base.send :include, AbAdmin::Mailers::Helpers end ActiveSupport.on_load :action_view do ActionController::Base.helper AbAdmin::Views::Helpers ActionController::Base.helper AbAdmin::Views::AdminHelpers ActionController::Base.helper AbAdmin::Views::AdminNavigationHelpers ActionController::Base.helper AbAdmin::Views::ManagerHelpers end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.11.0 | lib/ab_admin/engine.rb |
ab_admin-0.10.0 | lib/ab_admin/engine.rb |