Skip to content
Browse files

more readme tweaks

  • Loading branch information...
1 parent 762a007 commit 8ee9c9126ca43136e0d243ba916e4224e8fef95b Nathan Long committed Apr 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.markdown
View
4 README.markdown
@@ -190,12 +190,12 @@ class ApplicationAuthorizer < Authority::Authorizer
# Example call: `default(:creatable, current_user)`
def self.default(able, user)
- user.has_role_granting?(able) || user.is_admin?
+ has_role_granting?(user, able) || user.admin?
end
protected
- def has_role_granting(able)
+ def has_role_granting(user, able)
# Does the user have any of the roles which give this permission?
(roles_which_grant(able) & user.roles).any?
end

0 comments on commit 8ee9c91

Please sign in to comment.
Something went wrong with that request. Please try again.