lib/engine.rb in dynamic_menu-2.0.2 vs lib/engine.rb in dynamic_menu-3.0.0.pre1
- old
+ new
@@ -1,9 +1,7 @@
-require 'dynamic_menu'
-
module DynamicMenu
- class Engine < Rails::Engine
- initializer "dynamic_menu.menu_items" do |app|
- ActionController::Base.send :include, DynamicMenu::MenuItems
- end
- end
-end
+ class Engine < ::Rails::Engine
+ initializer "dynamic_menu.inheritable_menus" do |app|
+ ActionView::Base.send :include, DynamicMenu::InheritableMenus
+ end
+ end
+end
\ No newline at end of file