Sha256: 3c134de081d6d4ef99e3b4fe2fe530c64a8014acb4f57494453bc6fefe88ad01
Contents?: true
Size: 1.34 KB
Versions: 3
Compression:
Stored size: 1.34 KB
Contents
require 'rails' require 'ab_admin' module AbAdmin class Engine < ::Rails::Engine engine_name 'ab_admin' initializer 'ab_admin.setup' do ::Mime::Type.register 'application/vnd.ms-excel', :xls ActiveSupport.on_load :active_record do 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 end ActiveSupport.on_load :action_mailer do ActionMailer::Base.send :include, AbAdmin::Mailers::Helpers end ActiveSupport.on_load :action_controller do ActionController::Base.send :include, AbAdmin::Controllers::HeadOptions 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.3.2 | lib/ab_admin/engine.rb |
ab_admin-0.3.1 | lib/ab_admin/engine.rb |
ab_admin-0.3.0 | lib/ab_admin/engine.rb |