lib/ecm/news/engine.rb in ecm_news2-3.0.0 vs lib/ecm/news/engine.rb in ecm_news2-4.0.0
- old
+ new
@@ -1,11 +1,7 @@
module Ecm
module News
class Engine < ::Rails::Engine
- initializer :ecm_news_engine do
- ActiveAdmin.setup do |config|
- config.load_paths << File.join(root, 'app', 'admin')
- end
- end if Gem::Specification.find_all_by_name('activeadmin').any?
+ isolate_namespace Ecm::News
end
end
end