Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Created January 13, 2015 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrislerum/6c0c8496cfcbec8c2c15 to your computer and use it in GitHub Desktop.
Save chrislerum/6c0c8496cfcbec8c2c15 to your computer and use it in GitHub Desktop.
trying to authenticate for rails_admin with devise
private method `current_user' called for #<RailsAdmin::MainController:0x007ffe52976be0>
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