rails_nav 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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