mtoros-mega_menus 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/mega_menus.gemspec +1 -1
- data/rails_generators/menu/templates/helpers/menu_helper.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake'
|
|
4
4
|
begin
|
5
5
|
require 'echoe'
|
6
6
|
|
7
|
-
Echoe.new('mega_menus', '0.7.
|
7
|
+
Echoe.new('mega_menus', '0.7.1') do |p|
|
8
8
|
p.summary = "Treeview menu Gem for Rails"
|
9
9
|
p.description = "Adds a model, controller to perform the tasks in order to have a treeview menu. To use this gem simply install it and write script/generate menu name_of_the_menu"
|
10
10
|
p.author = ['Marko Toros']
|
data/mega_menus.gemspec
CHANGED
@@ -91,7 +91,7 @@ module <%= "#{file_name.capitalize}Helper" %>
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
94
|
-
if(firstm==TRUE and <%= "#{file_name.capitalize}" %>.exists?(admin_parent))
|
94
|
+
if(firstm==TRUE and <%= "#{file_name.capitalize}" %>.exists?(admin_parent) and admin_parent!=1 and <%= "#{file_name.capitalize}" %>.find(admin_parent).depth==admin_depth.first-1)
|
95
95
|
concat( "<ul id=\"ul_menu_#{admin_depth.first}\" class=\"ul_menu_depth_#{admin_depth.first} ul_menu\">")
|
96
96
|
if(admin_condition)
|
97
97
|
concat( "<li id=\"root_add_#{admin_parent}\" class=\"root_add\">")
|