action_interceptor 0.5.0 → 0.5.1
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/action_controller.rb +2 -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: d9132e770db723eba4bb2118a555262cc7ea69cd
|
4
|
+
data.tar.gz: a936d5bbc88a7e375d06033be7d169493a23aafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e788e583d94e4f9e76a404f5f8ae822985560aab0466b82e930b1ea2ae56e83f1895c2060f1466ea848c926665f5c25a9ddd924bcba10a5400185bacd1e56907
|
7
|
+
data.tar.gz: ebeff2bfb573f308b638f98ac5ee457b6eb86b687f5fcbd39062529a9f3f9e19177b030145ff30b983613e723a047dc6645922e928985896774cf484533f01fb
|
@@ -43,7 +43,8 @@ module ActionInterceptor
|
|
43
43
|
def current_url_hash
|
44
44
|
return @current_url_hash if @current_url_hash
|
45
45
|
|
46
|
-
|
46
|
+
config = interceptor_config || ActionInterceptor::DEFAULT_CONFIG
|
47
|
+
key = config[:intercepted_url_key]
|
47
48
|
|
48
49
|
# Can't redirect back to non-get
|
49
50
|
# Also, can't call root_url here, so use '/' instead
|
@@ -53,7 +54,6 @@ module ActionInterceptor
|
|
53
54
|
end
|
54
55
|
|
55
56
|
def interceptor_setup
|
56
|
-
config = interceptor_config
|
57
57
|
if is_interceptor?
|
58
58
|
self.interceptor_enabled = interceptor_config[:override_url_options]
|
59
59
|
session.delete(:interceptor) if interceptor_config[:skip_session]
|