dynamic_menu 3.0.0.rc3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/dynamic_menu/base.rb
CHANGED
@@ -22,7 +22,7 @@ module DynamicMenu
|
|
22
22
|
file = Rails.root.to_s+"/app/menus/#{params[:controller]}/#{menu_name}.rb"
|
23
23
|
load file
|
24
24
|
links_obj = "#{menu_name}Menu".classify.constantize.new(@parent)
|
25
|
-
@menuLinks
|
25
|
+
@menuLinks.concat(links_obj.get_menu_links)
|
26
26
|
end
|
27
27
|
|
28
28
|
def load_instance_vars
|
data/lib/dynamic_menu/version.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
class <%= @menu_name.capitalize %>Menu < DynamicMenu::Base
|
2
2
|
def build_menu
|
3
|
-
|
4
|
-
end
|
3
|
+
add link_to "Change me","#" if can? :read, All #change this line and add lines using add
|
5
4
|
end
|
6
5
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Travis Pessetto
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -141,9 +141,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
142
|
none: false
|
143
143
|
requirements:
|
144
|
-
- - ! '
|
144
|
+
- - ! '>='
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
146
|
+
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
149
|
rubygems_version: 1.8.24
|