mtoros-mega_menus 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -5
- data/mega_menus.gemspec +1 -1
- data/rails_generators/menu/templates/helpers/menu_helper.rb +2 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -1,20 +1,17 @@
|
|
1
|
-
#require './lib/mega_menus.rb'
|
2
1
|
require 'rubygems'
|
3
2
|
require 'rake'
|
4
3
|
|
5
4
|
begin
|
6
5
|
require 'echoe'
|
7
6
|
|
8
|
-
Echoe.new('mega_menus', '0.5.
|
7
|
+
Echoe.new('mega_menus', '0.5.5') do |p|
|
9
8
|
p.summary = "Treeview menu Gem for Rails"
|
10
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"
|
11
10
|
p.author = ['Marko Toros']
|
12
11
|
p.email = "mtoros@gmail.com"
|
13
|
-
|
12
|
+
p.url = ""
|
14
13
|
end
|
15
14
|
rescue LoadError => boom
|
16
15
|
puts "You are missing a dependency required for meta-operations on this gem."
|
17
16
|
puts "#{boom.to_s.capitalize}."
|
18
17
|
end
|
19
|
-
|
20
|
-
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
data/mega_menus.gemspec
CHANGED
@@ -82,7 +82,7 @@ module <%= "#{file_name.capitalize}Helper" %>
|
|
82
82
|
concat text_field_tag "link", "link"
|
83
83
|
concat hidden_field_tag :menu_id, menu_id
|
84
84
|
#content_tag :button, "Submit", {:type=>"submit", :class=>"button-submit"}
|
85
|
-
concat submit_tag "Add"
|
85
|
+
concat submit_tag "Add", :class => "add_edit_button"
|
86
86
|
concat "</div>"
|
87
87
|
end
|
88
88
|
return nil
|
@@ -100,7 +100,7 @@ module <%= "#{file_name.capitalize}Helper" %>
|
|
100
100
|
concat text_field_tag "parent_id", m.parent_id
|
101
101
|
concat hidden_field_tag :menu_id, m.id
|
102
102
|
#concat content_tag :button, "Submit", {:type=>"submit", :class=>"button-submit"}
|
103
|
-
concat submit_tag "Edit"
|
103
|
+
concat submit_tag "Edit", :class => "add_edit_button"
|
104
104
|
concat "</div>"
|
105
105
|
end
|
106
106
|
return nil
|