friendly_routes 0.4.5 → 0.4.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 270cb4d5ebbc534560258c054aa5a9e919dac8b0
|
4
|
+
data.tar.gz: 9605c2f025439483bbf9bc12f35760f47052e7cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22515c1fc10f0d2ec607306ae755ed1665d8e82acd592d40351a2c9f47d997853b9c3f284c56b651d6a72f4773c6e15cae974784f2e4d9ef5071bf9bf08e26b4
|
7
|
+
data.tar.gz: ba7ad4a6a9d9a8d854a83512a6f763e06c25b21594a0ca5a5da23f8c65a81c9a32fda6e60d00f1c10a2e87a16bda6688530f0e67b1ea94b4a746d7a8ff5bfe8c
|
@@ -27,7 +27,7 @@ module FriendlyRoutes
|
|
27
27
|
|
28
28
|
def compose(param)
|
29
29
|
value = @params[param.name]
|
30
|
-
return
|
30
|
+
return if value.nil? || param.refused?(value)
|
31
31
|
prefixed_name = FriendlyRoutes::PrefixedParam.new(param.name, @route.prefix).call
|
32
32
|
@params[prefixed_name] = param.compose(value)
|
33
33
|
@params.delete(param.name) unless param.name == prefixed_name
|