From 8a87628c7525429171da281ce4347b4474cd712b Mon Sep 17 00:00:00 2001 From: Dmitry Babenko Date: Tue, 27 Oct 2020 13:05:25 +0200 Subject: [PATCH] Remove validation failed default error #25 --- lib/auxiliary_rails/concerns/performable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auxiliary_rails/concerns/performable.rb b/lib/auxiliary_rails/concerns/performable.rb index ec83bdf..880f888 100644 --- a/lib/auxiliary_rails/concerns/performable.rb +++ b/lib/auxiliary_rails/concerns/performable.rb @@ -20,7 +20,7 @@ def call(options = {}) if options[:validate!] == true validate! elsif options[:validate] != false && invalid? - return failure!(:validation_failed) + return failure! end perform