module PGTrunk::Operation::Validations

@private Enable validation of the operation in the Rails way

Public Instance Methods

error_messages() click to toggle source
# File lib/pg_trunk/core/operation/validations.rb, line 13
def error_messages
  errors.messages.flat_map do |k, v|
    Array(v).map do |msg|
      k == :base ? msg : [k, msg].join(" ")
    end
  end
end