Module: Ohm::Validations::Callbacks
- Included in:
- Ohm::Validations
- Defined in:
- lib/ohm/validations.rb
Instance Method Summary collapse
Instance Method Details
#save ⇒ Object
20 21 22 23 24 |
# File 'lib/ohm/validations.rb', line 20 def save return unless valid? super end |
#valid? ⇒ Boolean
10 11 12 13 14 15 16 17 18 |
# File 'lib/ohm/validations.rb', line 10 def valid? before_validate result = super after_validate result end |