petergate 1.6.6 → 1.6.7

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: 92093289b85646356446c4fcaff0d86c28f3142f
4
- data.tar.gz: 8a48aebdd93d07ab8e452e7ddd60758c0692f4ac
3
+ metadata.gz: ad2ca3aedcf715c1b73a506449725242a0be4d3e
4
+ data.tar.gz: b0cabc242f2cd1e80bda78162633356aa0a7216b
5
5
  SHA512:
6
- metadata.gz: 61da71bb4c55f95776c2495fa5f2a7776fa66db45b566ee0e401ec0673f3d2f9bf19680708d7fe999baa51cd56bd303002170f679f107562721c7c1d888ee799
7
- data.tar.gz: fc9f0361a82da2a106730e65d02e31ebd334f2d354326e61bfc7a7d8931a91103fc0a21b7113907ccc040b11082a27a9e27929355d232feb25327d2891eecbe6
6
+ metadata.gz: b672cd4a53dae9a55e3cb4cde2f9f3ce0e06084553af450c67bbb963c6855baad5bba8639a3c16115ef2f8afa5ce5f54648b959920af519ef0c3c33b202efa01
7
+ data.tar.gz: 93876867cbf3d0e0fa16b0a6d1451ebd1acd10d518190734f35d15b6be8dec68df3ad9502621cdfb1c5b98d35ac168f1af92488361d7f49b4b1a8e2602f3f3f9
@@ -41,6 +41,12 @@ module Petergate
41
41
  subclass.instance_variable_set("@_controller_rules", instance_variable_get("@_controller_rules"))
42
42
  subclass.instance_variable_set("@_controller_message", instance_variable_get("@_controller_message"))
43
43
  end
44
+ end
45
+
46
+ class_eval do
47
+ def check_access
48
+ permissions(self.class.controller_rules)
49
+ end
44
50
 
45
51
  before_action do
46
52
  unless logged_in?(:root_admin)
@@ -55,12 +61,6 @@ module Petergate
55
61
  end
56
62
  end
57
63
  end
58
-
59
- class_eval do
60
- def check_access
61
- permissions(self.class.controller_rules)
62
- end
63
- end
64
64
  end
65
65
  end
66
66
 
@@ -1,3 +1,3 @@
1
1
  module Petergate
2
- VERSION = "1.6.6"
2
+ VERSION = "1.6.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petergate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Sloan