rolypoly 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,9 +35,10 @@ module Rolypoly
35
35
  end
36
36
 
37
37
  def rolypoly_role_access?
38
- rolypoly_gatekeepers.any? { |gatekeeper|
39
- gatekeeper.allow? current_roles, action_name
40
- }
38
+ rolypoly_gatekeepers.empty? ||
39
+ rolypoly_gatekeepers.any? { |gatekeeper|
40
+ gatekeeper.allow? current_roles, action_name
41
+ }
41
42
  end
42
43
  private :rolypoly_role_access?
43
44
 
@@ -1,3 +1,3 @@
1
1
  module Rolypoly
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rolypoly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: -4124332530131221613
100
+ hash: 1102617344684518140
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: -4124332530131221613
109
+ hash: 1102617344684518140
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 1.8.25