effective_orders 1.7.3 → 1.7.4
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: f3c77f2d2663fa4cf21c0056776288cf435c9b04
|
4
|
+
data.tar.gz: f64ce34d3cd914c189f4378f6d22dfd1028cf488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab5f70f35bb0620464c8b3a1d0d049347102fe70cedd07adba4b845cc511f6402078ab26ae5390dd9b552a36697fcff25b78c9dcbe8770dcbbbff5c06a0ab50b
|
7
|
+
data.tar.gz: 18c24453854bc4ec6664c6cd27b5ea1d1464ab37b1b5b349d5332a08540b2093a4cdacc83df6dc42351469b869c985c76287555026459e4bb4ce3cea8c722076
|
@@ -13,7 +13,7 @@ module ActsAsActiveAdminController
|
|
13
13
|
include ActiveAdmin::BaseController::Authorization
|
14
14
|
|
15
15
|
helper ActiveAdmin::ViewHelpers
|
16
|
-
helper_method :active_admin_config, :active_admin_namespace, :current_active_admin_user
|
16
|
+
helper_method :active_admin_config, :active_admin_namespace, :current_active_admin_user, :current_active_admin_user?, :env
|
17
17
|
|
18
18
|
resource_key = @active_admin_resource_element_lookup_key.to_s
|
19
19
|
self.send(:define_method, :active_admin_resource_element_key) { resource_key }
|
@@ -50,9 +50,19 @@ module ActsAsActiveAdminController
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
# Calls the authentication method as defined in ActiveAdmin.authentication_method
|
54
|
+
def authenticate_active_admin_user
|
55
|
+
send(active_admin_namespace.authentication_method) if active_admin_namespace.authentication_method
|
56
|
+
end
|
57
|
+
|
53
58
|
def current_active_admin_user
|
54
59
|
send(active_admin_namespace.current_user_method) if active_admin_namespace.current_user_method
|
55
60
|
end
|
56
61
|
|
62
|
+
def current_active_admin_user?
|
63
|
+
!!current_active_admin_user
|
64
|
+
end
|
65
|
+
|
66
|
+
|
57
67
|
end
|
58
68
|
|