Skip to content

Commit

Permalink
Remove validation failed default error #25
Browse files Browse the repository at this point in the history
  • Loading branch information
stgeneral committed Oct 27, 2020
1 parent b13797f commit 8a87628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auxiliary_rails/concerns/performable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a87628

Please sign in to comment.