Skip to content

Commit

Permalink
Merge pull request #4156 from shishir127/4147-base-controller-gotcha
Browse files Browse the repository at this point in the history
Added documentation for the gotcha discussed in issue 4147
  • Loading branch information
seanlinsley committed Oct 13, 2015
2 parents 6fdc1b5 + de2b0c8 commit 72709dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/14-gotchas.md
Expand Up @@ -89,4 +89,6 @@ YourModel.__elasticsearch__.search
```ruby
YourModel.solr_search
```
## Authentication & Application Controller

The `ActiveAdmin::BaseController` inherits from the `ApplicationController`. Any authentication method(s) specified in the `ApplicationController` callbacks will be called instead of the authentication method in the active admin config file. For example, if the ApplicationController has a callback `before_action :custom_authentication_method` and the config file's authentication method is `config.authentication_method = :authenticate_active_admin_user`, then `custom_authentication_method` will be called instead of `authenticate_active_admin_user`.

0 comments on commit 72709dc

Please sign in to comment.