simple-navigation 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
+
*1.2.1
|
2
|
+
|
3
|
+
* changed way to include render_*-helper_methods into view (including them into Controller and declaring them as helper_methods instead of adding whole module as Helper). this seems to be more reliable under certain conditions. Credits to Gernot Kogler.
|
4
|
+
|
1
5
|
*1.2.0
|
6
|
+
|
2
7
|
* added capability to add conditions to navigation-items (primary.item key, name, url, :if => Proc.new {current_user.admin?})
|
3
8
|
|
4
9
|
*1.1.2
|
data/VERSION.yml
CHANGED
@@ -40,7 +40,8 @@ module SimpleNavigation
|
|
40
40
|
base.class_eval do
|
41
41
|
extend ClassMethods
|
42
42
|
include InstanceMethods
|
43
|
-
|
43
|
+
include SimpleNavigation::Helpers
|
44
|
+
base.helper_method :render_navigation, :render_primary_navigation, :render_sub_navigation
|
44
45
|
end
|
45
46
|
end
|
46
47
|
|
@@ -23,7 +23,9 @@ describe SimpleNavigation::ControllerMethods do
|
|
23
23
|
@controller.should respond_to(:current_navigation)
|
24
24
|
end
|
25
25
|
it "should install the Helpers Module" do
|
26
|
-
|
26
|
+
[:render_navigation, :render_primary_navigation, :render_sub_navigation].each do |m|
|
27
|
+
@controller.master_helper_module.instance_methods.should include(m.to_s)
|
28
|
+
end
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-navigation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andi Schacke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-14 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|