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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f5681f9038cd841546459b4c708170a8089095c
4
- data.tar.gz: 0ddd69d307f6b783a64ce397633f17fcf92a5db3
3
+ metadata.gz: 968bbb4802835d50cebe03d21032b3ce39624853
4
+ data.tar.gz: dc4fb332847a0387132e005f64cb1f0b8c988e26
5
5
  SHA512:
6
- metadata.gz: 95fe585cb24795d6b20ac15d40412ea13d1fe9c7a0d6348685e59569a91a95f702192e56e32a110e441463868975c7f857fcbb5a2121cbc9eca6e648ae5db1d6
7
- data.tar.gz: c41ca1a758459fbd7f8337e35d6a53a2c056635c65e62533ee9cfacf341a57ca75f9b61db3f30227162860f70699fb8fa94a201d08f1767b9983afe59a4f433d
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) || current_page?("/#{request.fullpath.split('/')[1]}") ? active_class : ''
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
@@ -1,3 +1,3 @@
1
1
  module Activenavbar
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activenavbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bunlong