role_authorization 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0ca5996c66a512e3c12b3a8e6221de3f74f0256
4
- data.tar.gz: 031823ecfd5ab8129fb7e99beeb8a2b1c054bd89
3
+ metadata.gz: 2af15cc458d7eb115dc2305e85acd391c063ba58
4
+ data.tar.gz: 0f2763f9f76455dc887ef922410b9ba14e35df2b
5
5
  SHA512:
6
- metadata.gz: d568df164f80018746afa603da813bf980d4e0500df3894a460429ec72026fef7251f66cb6fe3f78e6c7341e5be21d9f4a89b0c556c5a977e43385ea9fe4ef1f
7
- data.tar.gz: 49bd939566868a64fbb37bff1f2c693c5042880be3683b5f20c3d60274b362a58beeb9e6b5c1775952153e2715304420a8e14300d02462ead3e517a085cf9dd6
6
+ metadata.gz: 4e60097f0c4dbb0a95adff4d6bb2dc07beca7ef5196f763727f0e2c4825bf1cd56b7a8e7343210f9753ac3eaffe6826f1f941a2ec09ed2c9dcab1d6d4294c285
7
+ data.tar.gz: a08d89b7306d8810b68be882f1c86196ac14af50d25df2c98a74c36d85513f4644d536e6799ae05b191ee3bd580552293cb4b8434f1e0e01d26bd7ca5035cd0b
@@ -5,8 +5,13 @@ module RoleAuthorization
5
5
  helper_method :authorized?
6
6
  helper_method :accessible?
7
7
 
8
- before_filter :check_request_authorization
8
+ if respond_to?(:before_action)
9
+ before_action :check_request_authorization
10
+ else
11
+ before_filter :check_request_authorization
12
+ end
9
13
  end
14
+
10
15
  base.send :extend, RoleAuthorization::Ruleset::ClassMethods
11
16
  base.send :cattr_ruleset, :ruleset, :allowable_groups
12
17
 
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: role_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John 'asceth' Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-06 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project: role_authorization
97
- rubygems_version: 2.2.2
97
+ rubygems_version: 2.4.5
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Role Authorization gem for Rails