lib/ohm/validations.rb in ohm-validations-1.0.0 vs lib/ohm/validations.rb in ohm-validations-1.1.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require "scrivener/validations"
module Ohm
module Validations
include Scrivener::Validations
@@ -14,10 +16,11 @@
result
end
def save
- return if not valid?
+ return unless valid?
+
super
end
protected