lib/ab_admin/engine.rb in ab_admin-0.6.1 vs lib/ab_admin/engine.rb in ab_admin-0.7.0
- old
+ new
@@ -5,12 +5,13 @@
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', :xls
+ ::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