lib/ab_admin/engine.rb in ab_admin-0.3.6 vs lib/ab_admin/engine.rb in ab_admin-0.4.0

- old
+ new

@@ -1,8 +1,5 @@ -require 'rails' -require 'ab_admin' - module AbAdmin class Engine < ::Rails::Engine engine_name 'ab_admin' initializer 'ab_admin.assets_precompile', :group => :all do |app| @@ -16,19 +13,16 @@ 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 :extend, AbAdmin::Concerns::Silencer ActiveRecord::Base.send :include, AbAdmin::Concerns::Validations + ActiveRecord::Base.send :include, AbAdmin::Concerns::Fileuploads 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