elabs/pundit — pull request #42 by Zeeraw (2013-07-13 03:45:31+00:00)
Title: [feature] Custom Pundit User

## Customize pundit user

In some cases your controller might not have access to `current_user`, or your
`current_user` is not the method one that should be invoked by pundit. Simply
define a method in your controller called `pundit_user`.

```ruby
def pundit_user
User.find_by_other_means
end
```