Skip to content

Commit 2a54aa6

Browse files
better readme
1 parent c98bfb1 commit 2a54aa6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ Alternatively use the `App.Authorization.Authorizer#authorize` method, which sho
8484

8585
This approach is sketched out here: [shelving-emberjs-was-authorization-in](http://avitevet.blogspot.com.es/2013/01/shelving-emberjs-was-authorization-in.html)
8686

87-
You must also have a currentUser at `App.currentUser` for permissions to work.
87+
There are also some nice ideas presented in this [gist](https://gist.github.com/ivanvanderbyl/4560416) about how to integrate with *cancan* permissions.
88+
89+
You must have a `currentUser` on the controller for permissions to work.
8890
For this a `App.CurrentUserController` is included. On this controller you can set the `currentUserPath` property to the path of your server API that returns the current user.
8991
It might be useful to return a Guest user, in case no user is logged in.
9092

@@ -195,7 +197,7 @@ Currently, the BeerCan coffeescript auth modules are not setup to use the `Guard
195197

196198
See [railscast: securing an api](http://railscasts.com/episodes/352-securing-an-api?view=asciicast) for a walk-through of what is required...
197199

198-
## Authentication lib integrations (future)
200+
## Auth lib integrations (future)
199201

200202
Would be nice to have built-in support for: [ember-auth-rails](https://github.com/heartsentwined/ember-auth-rails) and [pundit](https://github.com/elabs/pundit)
201203

0 commit comments

Comments
 (0)