lib/active_admin/engine.rb in activeadmin-0.6.6 vs lib/active_admin/engine.rb in activeadmin-1.0.0.pre1

- old
+ new

@@ -1,14 +1,16 @@ module ActiveAdmin class Engine < ::Rails::Engine - if Rails.version > "3.1" - initializer "ActiveAdmin precompile hook", :group => :all do |app| - ActiveAdmin.application.stylesheets.each do |path, _| - app.config.assets.precompile << path - end - ActiveAdmin.application.javascripts.each do |path| - app.config.assets.precompile << path - end + initializer "active_admin.precompile", group: :all do |app| + ActiveAdmin.application.stylesheets.each do |path, _| + app.config.assets.precompile << path end + ActiveAdmin.application.javascripts.each do |path| + app.config.assets.precompile << path + end + end + + initializer 'active_admin.routes' do + require 'active_admin/helpers/routes/url_helpers' end end end