role_authorization 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,8 +52,8 @@ module RoleAuthorization
52
52
  scope, scope_id = scope_with(scope)
53
53
 
54
54
  (serialized_roles || {}).inject([]) do |array, (key, value)|
55
- if key == :global && scope.nil?
56
- array << value
55
+ if key == :global
56
+ array << value if scope.nil?
57
57
  else
58
58
  if scope.nil? || (key == scope.to_sym && scope_id.nil?)
59
59
  if value.is_a?(Hash)
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: role_authorization
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.6
5
+ version: 0.2.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - John 'asceth' Long
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-10 00:00:00 -05:00
13
+ date: 2011-03-15 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency