Skip to content

Commit

Permalink
Merge branch 'hotfix/0.0.7'
Browse files Browse the repository at this point in the history
* hotfix/0.0.7:
  Update ChangeLog
  return an arel object from our roles method to enable chaining
  bump version
  • Loading branch information
jasherai committed Aug 16, 2012
2 parents 34b4a96 + 16cf308 commit d715ffc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* 957bbc8 Include global Roles in returned roles scope
* f453eb5 Include Global Roles in scoping results
* 63fe863 return an arel object from our roles method to enable chaining
* 79bbcc5 bump version
2 changes: 1 addition & 1 deletion lib/scoped_roles/models/roles_through_join.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def has_role?(role_name)
# returns Array
def roles
roles = super
roles & scoped_role
roles.where(id: scoped_role)
end

#def grant_role
Expand Down
2 changes: 1 addition & 1 deletion lib/scoped_roles/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ScopedRoles
VERSION = "0.0.6"
VERSION = "0.0.7"
end

0 comments on commit d715ffc

Please sign in to comment.