module ExpressAdmin::CurrentUser::InstanceMethods

Public Instance Methods

set_current_user() click to toggle source
# File lib/express_admin/current_user.rb, line 16
def set_current_user
  if defined? Devise
    # This allows `current_user` (if defined) to be accessible
    # outside a controller.
    RequestStore[:current_user] = self.try(:current_user)
  end
end