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: f37b638eff5e1f8cab0f9ee896f9538f6a8e59bd
4
- data.tar.gz: 3a7e2ba91502f6d5aa9b74b1635083d2988a3af1
3
+ metadata.gz: f3c77f2d2663fa4cf21c0056776288cf435c9b04
4
+ data.tar.gz: f64ce34d3cd914c189f4378f6d22dfd1028cf488
5
5
  SHA512:
6
- metadata.gz: b7fb7059d280f36a64f62023767a466d48e538a67737a0e6b6acf0da37260b1f78257bef56274aff1abf6315551df01d736ba6267a1b89187e5b47452cef3c1d
7
- data.tar.gz: b5ee7a781df6d40d10a2a824fc3b9cd776b2673a242fa8e23d1418da4fe6d8eb43179fffe590afe66cba5999380abc732e4853d99bcbb96fed1e531f87ac5e6d
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.7.3'.freeze
2
+ VERSION = '1.7.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect