activenavbar 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activenavbar.rb +1 -1
- data/lib/activenavbar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 968bbb4802835d50cebe03d21032b3ce39624853
|
4
|
+
data.tar.gz: dc4fb332847a0387132e005f64cb1f0b8c988e26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c68cbef10a321f4c9671060a42eee3a53ea10ee2114bb21826efa0f7080a2413e0358ad718b75ded9a9f09b149697c9f02556b81f283d0f84c7e1f61cd28855f
|
7
|
+
data.tar.gz: be5e5716a26ff14cb777179237b2330f4fe8213d69f00d316f72b0939dc3d756891ab3b0a5baf5552e82e6ebf5d45ae5a65a6eb72bf9fa59b0a7615461437735
|
data/lib/activenavbar.rb
CHANGED
@@ -2,7 +2,7 @@ require "activenavbar/version"
|
|
2
2
|
|
3
3
|
module Activenavbar
|
4
4
|
def navbar_link(label, path, active_class)
|
5
|
-
class_name = current_page?(path) ||
|
5
|
+
class_name = current_page?(path) || path == "/#{request.fullpath.split('/')[1]}" ? active_class : ''
|
6
6
|
content_tag(:li, :class => class_name) { link_to label, path }
|
7
7
|
end
|
8
8
|
end
|
data/lib/activenavbar/version.rb
CHANGED