simpler_navigation 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simpler_navigation/renderers/base.rb +2 -16
- data/lib/simpler_navigation/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 626e64edbed0821098ffb7e9f41ea482af4c902d6cfd1390d57c307906aaced8
|
4
|
+
data.tar.gz: 4c3ee2f62d975d7cc1c4d6c1de00650479e2acf0bad15f492b92f19e5f2e66df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd5187bbfa35c31aff30a0440b4f61edc3fe579cd98e791baacfada451802ed412eb781f063e8582e74686fe24155cd6dae1a59706c1361c3af6cec8244ca84c
|
7
|
+
data.tar.gz: 158cdb352ec4541741babcc8684106115a5915a33693af17dcf8670e65ad096adcec4f98fe329183e536cc32c97413f48c3398652c1edce997acaa8fc3496e1f
|
data/Gemfile.lock
CHANGED
@@ -147,23 +147,9 @@ module SimplerNavigation
|
|
147
147
|
|
148
148
|
show = true
|
149
149
|
if !item.options[:if].nil?
|
150
|
-
show =
|
151
|
-
when false
|
152
|
-
false
|
153
|
-
when true
|
154
|
-
true
|
155
|
-
else
|
156
|
-
item.options[:if].call
|
157
|
-
end
|
150
|
+
show = item.options[:if].call
|
158
151
|
elsif !item.options[:unless].nil?
|
159
|
-
show =
|
160
|
-
when false
|
161
|
-
true
|
162
|
-
when true
|
163
|
-
false
|
164
|
-
else
|
165
|
-
!item.options[:unless].call
|
166
|
-
end
|
152
|
+
show = !item.options[:unless].call
|
167
153
|
end
|
168
154
|
|
169
155
|
@show[item] = show
|