rbac_core 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbac_core/mapper.rb +1 -1
- data/lib/rbac_core/permission.rb +3 -3
- data/lib/rbac_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8fa23cb6799737ab411e0db0cad9c7348e41fb
|
4
|
+
data.tar.gz: 88c458eeb4f692e09c1a5612a39d1eb3eb7f1f4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f67fab048dc53c91bf9eb1454613973c48bb223557b1c3ef1cc10d367831e016e9f40139f8f7c1ff7149d56c61b73444c1bf94d9512ac2f3465c691597b041e
|
7
|
+
data.tar.gz: a7832ff71c2760be51d7bb134404809097a7db24f72301ce250e70168a13fba81465b1563f46cf66711f94eac7f7fd445b3085513fac8a9f3334542fe42ac9ca
|
data/lib/rbac_core/mapper.rb
CHANGED
data/lib/rbac_core/permission.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
module RbacCore
|
2
2
|
class Permission
|
3
|
-
attr_reader :
|
3
|
+
attr_reader :name, :priority
|
4
4
|
|
5
|
-
def initialize(
|
6
|
-
@
|
5
|
+
def initialize(name, priority: 0, **options, &block)
|
6
|
+
@name = name
|
7
7
|
@priority = priority
|
8
8
|
end
|
9
9
|
|
data/lib/rbac_core/version.rb
CHANGED