role_authorization 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/role_authorization/controller.rb +6 -1
- data/lib/role_authorization/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af15cc458d7eb115dc2305e85acd391c063ba58
|
4
|
+
data.tar.gz: 0f2763f9f76455dc887ef922410b9ba14e35df2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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:
|
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.
|
97
|
+
rubygems_version: 2.4.5
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Role Authorization gem for Rails
|