invitational 1.5.2 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc506b2b423049ac47f3a0f7ea86a16f4204ef8a17358f498b5e892186deff24
4
- data.tar.gz: 6dcab49c8ee666218472c000204df725be534cda6b6d28632e855ace3729b0b8
3
+ metadata.gz: 2024765e178d438be00b90285e8182117f3a19808f44e50c5c2b25a95a817bfa
4
+ data.tar.gz: 35d944600017f94e0ef63a69323e9801aa59dbd119d49ec9006fc239a88388a5
5
5
  SHA512:
6
- metadata.gz: 2b7e52d13d7db5726d94bdf26558fe1421bf7d3c2434edd12bd7aa09131c75595669381035d67a8a3bb46007815cbf89196873d377a13056ca832be15e772b43
7
- data.tar.gz: '0823682ede248cdf54cd05081c392312ab2ff3e433c9f330981692989f461639bd52a0b12fcb0af93b82e9c4be54de8430655cd459a0fdc3306421169d09a9ac'
6
+ metadata.gz: 3202cbf96947d10a56a87af3305bb1a6654b3732920b9f1f3d3284b99ab48da2d6ccbdc5d456316c6026ce73d5429084ce33deacd1192abf6cf14dbb8a0535f6
7
+ data.tar.gz: f3a85205710edd13cec084bdeeb5d24caf0800da613d1049aaa117b8b84eb03157b3ffa9d0d373b5375a08f8616f80b360e4087dcb89de3accf69ed656e706bc
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Invitational
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.4"
3
3
  end