lib/active_admin/engine.rb in activeadmin-0.4.1 vs lib/active_admin/engine.rb in activeadmin-0.4.2
- old
+ new
@@ -1,4 +1,9 @@
module ActiveAdmin
class Engine < Rails::Engine
+ if Rails.version > "3.1"
+ initializer "ActiveAdmin precompile hook" do |app|
+ app.config.assets.precompile += ['active_admin.js', 'active_admin.css']
+ end
+ end
end
end