Skip to content

Commit

Permalink
Updated authentication docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 20, 2014
1 parent 80e49da commit f1e66dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ LICENSE for details.
[versioning-apis]: /documentation/versioning-apis.md
[routes]: /documentation/routes.md
[error-handling]: /documentation/error-handling.md
[authentication-and-authorization]: /documentation/authentication-and-authorization.md
[authentication-and-authorization]: /documentation/authentication-and-authorization.md
2 changes: 1 addition & 1 deletion documentation/authentication-and-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Once the client is authenticated (that is, you believe they are who they say the
class MySecureResource < Webmachine::Resource

def forbidden?
MySecureResourcePolicy.new(@user, @my_domain_model).forbidden?(request.method)
MySecureResourcePolicy.new(@user, my_secure_domain_model).forbidden?(request.method)
end

end
Expand Down

0 comments on commit f1e66dd

Please sign in to comment.