class ActiveModel::Serializer::ErrorSerializer

def as_json

Returns:
  • (Hash>) -
def as_json
  object.errors.messages
end