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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9357b339b947744936fd53c29e91feb959d228da33104ae2d59a90ecff849921
4
- data.tar.gz: fefe488cb5dc79204135efca29047426a41a4de7584da3bab9924d7db962991c
3
+ metadata.gz: 2024765e178d438be00b90285e8182117f3a19808f44e50c5c2b25a95a817bfa
4
+ data.tar.gz: 35d944600017f94e0ef63a69323e9801aa59dbd119d49ec9006fc239a88388a5
5
5
  SHA512:
6
- metadata.gz: 2fc25352287e924cd843385e4cc8e9fac908f15590f39bf5349ac27a7de1c19bbb79cca7b65a987722b60fd0f5dc285d44f79e64958a7be6a4919b6362b5131d
7
- data.tar.gz: 371ca12b87b60a4c1aac9800070f534a72c5d18c2df0e35c956afa42a6fd82b757d9a4e4160d470584aec71827f4bc015211973fbf4ad59bbf50e1df0a004a8d
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.3"
2
+ VERSION = "1.5.4"
3
3
  end