role_authorization 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ RoleAuthorization::Rules.define :role do
16
16
  :global
17
17
  end
18
18
 
19
- controller_instance.current_user.roles(options[:scope] || :global).include?(role)
19
+ controller_instance.current_user.roles(scope).include?(role)
20
20
  end
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
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.4.3
5
+ version: 0.4.4
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-04-14 00:00:00 -04:00
13
+ date: 2011-04-15 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency