lib/generators/dynamic_menu/templates/menu.rb in dynamic_menu-3.0.0.rc2 vs lib/generators/dynamic_menu/templates/menu.rb in dynamic_menu-3.0.0.rc3
- old
+ new
@@ -1,7 +1,6 @@
class <%= @menu_name.capitalize %>Menu < DynamicMenu::Base
def build_menu
- Hash.new.tap do |menu|
- menu["Change Me"] = "http://example.com/change_the_url"
+ add link_to "Change me","#" if can? :read, All #change this line and add lines using add
end
end
end
\ No newline at end of file