Solved. In config/initializers/rails_admin.rb
we have to specify the current_user_method
as
config.current_user_method { current_user } # refers to the current_user helper method in my case
Now everything is working perfectly. I am surprised why this isn't specified anywhere in the documentation.