action_interceptor 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_interceptor/common.rb +3 -2
- data/lib/action_interceptor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44ab9883cb1bb5fcebed393839f0e9c59922793a
|
4
|
+
data.tar.gz: d3837244011aaf89a4a280f116505bfe6ed503fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5701a304ec6e2782e31a0d1795b22ee335fa1b5bfe46ae9a518ed4d75979ed025e2d107380908519ec4698bc1322a2796d195d7ce6150e8a693d6eb4f05b495
|
7
|
+
data.tar.gz: ea4bed34a80eaa1def6bb9ce09f88df0539357b67dc1ba35ece2ed502856cec109c63e3db043988e3c2287f07e534ad07c743322b4f32a8011dc685d79f5433b
|
@@ -16,8 +16,9 @@ module ActionInterceptor
|
|
16
16
|
current_url_hash
|
17
17
|
|
18
18
|
uri = URI(url)
|
19
|
-
new_query =
|
20
|
-
.
|
19
|
+
new_query = HashWithIndifferentAccess[
|
20
|
+
URI.decode_www_form(uri.query || '')
|
21
|
+
].merge(@interceptor_url_for_hash)
|
21
22
|
uri.query = URI.encode_www_form(new_query)
|
22
23
|
uri.to_s
|
23
24
|
end
|