action_interceptor 0.4.0 → 0.4.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 +4 -6
- 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: 4891e6cb0fb40f238f11d9bf6a1e04534eca5096
|
4
|
+
data.tar.gz: bc9bfe976bcfee12092c7334a60862f3d2b688d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaa8d5deec9489d6fa45f313f8a8cc421c46a6c55dc131ed3ca5516b2c5645413099f1f45419cd55f3a47ff89961cbde154328b6f8ff07a3f975d0ae73507181
|
7
|
+
data.tar.gz: f60501e94fcc23b33ffab8f569b270e8b156d9faacd5d3739e6b4965dcda1f877d48e6f655f7f9caaf40290ea5c0ca2051c57bfa1dc0e4b4e8b2957bfe7a78e6
|
@@ -20,6 +20,10 @@ module ActionInterceptor
|
|
20
20
|
base.extend(ClassMethods)
|
21
21
|
end
|
22
22
|
|
23
|
+
def _compute_redirect_to_location(options)
|
24
|
+
url_for(super)
|
25
|
+
end
|
26
|
+
|
23
27
|
protected
|
24
28
|
|
25
29
|
def current_page?(url)
|
@@ -47,12 +51,6 @@ module ActionInterceptor
|
|
47
51
|
session.delete(ActionInterceptor.intercepted_url_key)
|
48
52
|
end
|
49
53
|
|
50
|
-
private
|
51
|
-
|
52
|
-
def _compute_redirect_to_location(options)
|
53
|
-
url_for(super)
|
54
|
-
end
|
55
|
-
|
56
54
|
module ClassMethods
|
57
55
|
|
58
56
|
def interceptor(*interceptor_names, &block)
|