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