# frozen_string_literal: true module ActiveModel class Serializer class ErrorSerializer < ActiveModel::Serializer # @return [Hash>] def as_json object.errors.messages end def success? false end end end end