'current_user' undefined in rails_admin with clearance
问题 I've been using rails_admin v0.7.0 with the clearance gem successfully up this point. I tried to update rails_admin to v1.0 today, but am getting an undefined variable or method error for current_user . In v0.7.0 it appears that RailsAdmin::MainController inherits from ApplicationController , whereas in v1.0 it inherits directly from ActionController::Base , which would explain current_user is now undefined (I believe current_user is defined in ApplicationController with the clearance gem).