invitational 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/invitational/cancan.rb +2 -2
- data/lib/invitational/version.rb +1 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +31433 -0
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2024765e178d438be00b90285e8182117f3a19808f44e50c5c2b25a95a817bfa
|
4
|
+
data.tar.gz: 35d944600017f94e0ef63a69323e9801aa59dbd119d49ec9006fc239a88388a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3202cbf96947d10a56a87af3305bb1a6654b3732920b9f1f3d3284b99ab48da2d6ccbdc5d456316c6026ce73d5429084ce33deacd1192abf6cf14dbb8a0535f6
|
7
|
+
data.tar.gz: f3a85205710edd13cec084bdeeb5d24caf0800da613d1049aaa117b8b84eb03157b3ffa9d0d373b5375a08f8616f80b360e4087dcb89de3accf69ed656e706bc
|
data/lib/invitational/cancan.rb
CHANGED
@@ -11,7 +11,7 @@ module Invitational
|
|
11
11
|
block ||= setup_role_based_block_for roles, subject, action, false
|
12
12
|
end
|
13
13
|
|
14
|
-
add_rule ::CanCan::Rule.new(true, action, subject, conditions, block)
|
14
|
+
add_rule ::CanCan::Rule.new(true, action, subject, conditions, &block)
|
15
15
|
end
|
16
16
|
|
17
17
|
def cannot(action = nil, subject = nil, conditions = nil, &block)
|
@@ -22,7 +22,7 @@ module Invitational
|
|
22
22
|
block ||= setup_role_based_block_for roles, subject, action, true
|
23
23
|
end
|
24
24
|
|
25
|
-
add_rule ::CanCan::Rule.new(false, action, subject, conditions, block)
|
25
|
+
add_rule ::CanCan::Rule.new(false, action, subject, conditions, &block)
|
26
26
|
end
|
27
27
|
|
28
28
|
def setup_role_based_block_for roles, subject, action, role_specific
|
data/lib/invitational/version.rb
CHANGED
Binary file
|