class SeaFood::Service
def validate_pipeline(pipeline)
def validate_pipeline(pipeline) pipeline.each do |key, form| fail_and_merge({ key => form.errors.messages }) unless form.valid? end fail!(@result.errors) if @result.failed? end
def validate_pipeline(pipeline) pipeline.each do |key, form| fail_and_merge({ key => form.errors.messages }) unless form.valid? end fail!(@result.errors) if @result.failed? end