def authorized?(action, subject)
      return false unless subject
      klass = subject.is_a?(Class) ? subject : subject.class
      authorizer_of(klass).authorized? action, subject
    end
def authorized?(action, subject)
      return false unless subject
      klass = subject.is_a?(Class) ? subject : subject.class
      authorizer_of(klass).authorized? action, subject
    end
Check if user is allowed to perform action on given subject
 @param action [Symbol, String]
 @param subject [Object, Class]
 @return [true] if allowed
 @return [false] if not allowed
 @since 5.2.0