effective_roles 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_roles/version.rb +1 -1
- data/lib/generators/templates/effective_roles.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1354b2d3e3b153eb52f9b83a4edd7e54f2b43ac2
|
4
|
+
data.tar.gz: 13b982ccbc08bc3549d5dbd4ea6b0a7263e55a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ebacd48387fc1cfdc7c75e42a18cde5d704332720b24e04ba12cec1ddc539fe961c5ad22eda8fc9910f11aae6b35d210230888671725c612070765bbb865c2a
|
7
|
+
data.tar.gz: 588b462eb1a33a73bb0a3f6d299cbbc592145415344af265cc944f0934c83e111297128812eab4a30a0321a287f020041cb758e948d7ee5252dc84b104d341e1
|
@@ -50,11 +50,11 @@ EffectiveRoles.setup do |config|
|
|
50
50
|
#
|
51
51
|
# Or just keep it simple, and use this Hash syntax of permissions for every resource
|
52
52
|
#
|
53
|
-
config.assignable_roles = {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
}
|
53
|
+
# config.assignable_roles = {
|
54
|
+
# :superadmin => [:superadmin, :admin, :member], # Superadmins may assign any resource any role
|
55
|
+
# :admin => [:admin, :member], # Admins may only assign the :admin or :member role
|
56
|
+
# :member => [] # Members may not assign any roles
|
57
|
+
# }
|
58
58
|
|
59
59
|
# config.disabled_roles
|
60
60
|
# Which roles should be displayed as disabled
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_roles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|