module ActiveAdmin::BaseController::Authorization

def authorized?(action, subject = nil)

Returns:
  • (Boolean) -

Parameters:
  • subject (any) -- The subject that the user is trying to perform
  • action (Symbol) -- The action to check if the user has permission
def authorized?(action, subject = nil)
  active_admin_authorization.authorized?(action, subject)
end