role_authorization 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ RoleAuthorization::Rules.define :all do
3
3
  end
4
4
 
5
5
  RoleAuthorization::Rules.define :role do
6
- controller_instance.current_user.roles(options[:scope] || :global).include?(options[:role])
6
+ controller_instance.current_user.roles(options[:scope] || :global).include?(role)
7
7
  end
8
8
 
9
9
  RoleAuthorization::Rules.define :user do
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
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.5
5
+ version: 0.2.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - John 'asceth' Long