role_authorization 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,7 +56,11 @@ module RoleAuthorization
56
56
  array << value
57
57
  else
58
58
  if scope.nil? || (key == scope.to_sym && scope_id.nil?)
59
- array << value.values
59
+ if value.is_a?(Hash)
60
+ array << value.values
61
+ else
62
+ array << value
63
+ end
60
64
  else
61
65
  array << value[scope_id]
62
66
  end
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.4
5
+ version: 0.2.5
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-09 00:00:00 -05:00
13
+ date: 2011-03-10 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency