Created
January 13, 2015 14:41
-
-
Save chrislerum/6c0c8496cfcbec8c2c15 to your computer and use it in GitHub Desktop.
trying to authenticate for rails_admin with devise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private method `current_user' called for #<RailsAdmin::MainController:0x007ffe52976be0> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 RailsAdmin.config do |config| | |
. | |
. | |
. | |
6 config.authenticate_with do | |
7 warden.authenticate! scope: :admin_user | |
8 end | |
9 config.current_user_method(&:current_user) | |
. | |
. | |
. | |
28 end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment