module Ohm::Validations::Callbacks
Public Instance Methods
save()
click to toggle source
Calls superclass method
# File lib/ohm/validations.rb, line 20 def save return unless valid? super end
valid?()
click to toggle source
Calls superclass method
# File lib/ohm/validations.rb, line 10 def valid? before_validate result = super after_validate result end
Protected Instance Methods
after_validate()
click to toggle source
# File lib/ohm/validations.rb, line 31 def after_validate end
before_validate()
click to toggle source
# File lib/ohm/validations.rb, line 28 def before_validate end