lib/ohm/validations.rb in ohm-validations-0.0.1 vs lib/ohm/validations.rb in ohm-validations-1.0.0

- old
+ new

@@ -4,24 +4,29 @@ module Validations include Scrivener::Validations module Callbacks def valid? - before_validation + before_validate result = super - after_validation + after_validate result end + def save + return if not valid? + super + end + protected - def before_validation + def before_validate end - def after_validation + def after_validate end end include Callbacks end