bard_static 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -77,13 +77,13 @@ module BardStatic
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def current_condition
|
80
|
-
html_options.delete(:if) ||
|
80
|
+
html_options.delete(:if) || current_path == url
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
84
|
class LinkToNav < LinkToCurrent
|
85
85
|
def current_condition
|
86
|
-
super ||
|
86
|
+
super || current_path.starts_with?(url)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
data/lib/bard_static/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard_static
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 3
|
10
|
+
version: 1.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Micah Geisel
|
@@ -21,7 +21,7 @@ autorequire:
|
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
23
|
|
24
|
-
date: 2013-06-
|
24
|
+
date: 2013-06-27 00:00:00 Z
|
25
25
|
dependencies: []
|
26
26
|
|
27
27
|
description: Handcrafted prototypes for Rails.
|