tenon 1.0.60 → 1.0.61

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: 1d53e72b5baba5b7ebbb44a67898108bb0c0e3c1
4
- data.tar.gz: dd2d373cf02d70ad9663605f6c15bc2ad4cee705
3
+ metadata.gz: e3988b2cc0d3fa8572d43a5910a31a52254daff1
4
+ data.tar.gz: 60673d1b4570bab086667b8f1ecddba2f6bef437
5
5
  SHA512:
6
- metadata.gz: 25ffa3ebba9e761239daebff9b12531489d5fb5d5151872cacedc7504efa18ce78bc2cc193e14120fb44c2e02dec5126b479ca8ba3db1e169eee0b48d7103abc
7
- data.tar.gz: 5b8d63a1bd0baeb4c8057cd603867aa2bc158be8f83782f81d7bc800588982867525460db32cffb7474ecd671d3ef5085ff41d7d6bd79cd045a7243ec4204425
6
+ metadata.gz: 00129771291fca4343aa5775b51116dc37b9f94a3a803ad16d7f7d1f24ddc3ff18aeb7858cf5ed2b530c522ecd9e31cf43c0f167d9c2d47cc4123351de64cc0e
7
+ data.tar.gz: 0451a68246a44af7b6206f500d506a765212b0205f5f9b2c9c722a1ff1c8e2987e3369476d41a6d43fe58b60760e8e68a6358f11020e8d1c372664879f61dfb7
@@ -27,7 +27,8 @@ module Tenon
27
27
 
28
28
  def active_class(path, active)
29
29
  path = url_for(path).split('/')[0..2].join('/')[1..-1]
30
- 'active' if active || path == controller_path
30
+ tenon_path = tenon.root_path.gsub(/^\//,'') + controller_name
31
+ 'active' if active || path == tenon_path
31
32
  end
32
33
  end
33
34
  end
data/lib/tenon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tenon
2
- VERSION = '1.0.60'
2
+ VERSION = '1.0.61'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tenon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.60
4
+ version: 1.0.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - factor[e] design initiative
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors