I am using rails_admin v0.7.0 with successfully achieving this permission. I tried updating rails_admin to v1.0 today, but getting an undefined variable or method error for current_user . In v0.7.0, it seems that RailsAdmin::MainController inherits from ApplicationController , while in v1.0 it inherits directly from ActionController::Base , which explains that current_user now undefined (I believe that current_user is defined in ApplicationController with a gap). However, since I do not find anyone else with this problem, I think I should miss something.
I was not the one who installed the permission for this application, but I donβt think that we are doing something non-standard with this, which will affect it. Clearance::Controller included in the ApplicationController . There is no specific definition for current_user .
configurations / Initializers / rails_admin.rb
RailsAdmin.config do |config|
source share