class SeaFood::Service

def validate_with!(key, form)

Parameters:
  • The ({ key: form [ActiveModel::Model] }) -- form objects to validate.
def validate_with!(key, form)
  fail!({ key => form.errors.messages }) unless form.valid?
end