current 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/current.gemspec +1 -1
- data/lib/current.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.email = "stevendgarcia@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/activestylus/current"
|
12
12
|
gem.authors = ["Steven Garcia"]
|
13
|
-
gem.version = "1.0.
|
13
|
+
gem.version = "1.0.6"
|
14
14
|
gem.add_development_dependency "shoulda", ">= 0"
|
15
15
|
gem.add_development_dependency "mocha", ">= 0"
|
16
16
|
gem.add_development_dependency "rails", ">= 0"
|
data/current.gemspec
CHANGED
data/lib/current.rb
CHANGED
@@ -21,7 +21,7 @@ module Current
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def nav_link_to(text,path,condition, options={})
|
24
|
-
klass = active_if(condition) + " #{options[:class]}"
|
24
|
+
klass = active_if?(condition) + " #{options[:class]}"
|
25
25
|
linktext = condition ? "#{text}" : text
|
26
26
|
link_to(raw(linktext), path, options.merge(:class => klass.strip))
|
27
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: current
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steven Garcia
|