rails_nav 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_nav.rb +9 -1
- data/rails_nav.gemspec +1 -1
- metadata +1 -1
data/lib/rails_nav.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
##
|
7
7
|
#
|
8
8
|
def Nav.version()
|
9
|
-
'2.
|
9
|
+
'2.3.0'
|
10
10
|
end
|
11
11
|
|
12
12
|
def Nav.dependencies
|
@@ -302,6 +302,14 @@
|
|
302
302
|
super
|
303
303
|
end
|
304
304
|
|
305
|
+
def last?
|
306
|
+
nav.last == self
|
307
|
+
end
|
308
|
+
|
309
|
+
def first?
|
310
|
+
nav.first == self
|
311
|
+
end
|
312
|
+
|
305
313
|
def Link.default_active_pattern_for(content)
|
306
314
|
path_info = Slug.for(content, :join => '_')
|
307
315
|
%r/\b#{ path_info }\b/i
|
data/rails_nav.gemspec
CHANGED