Module: Served::Resource::Validatable::Prepend
- Defined in:
- lib/served/resource/validatable.rb
Instance Method Summary collapse
Instance Method Details
#save(with_validations = true) ⇒ Object
35 36 37 38 |
# File 'lib/served/resource/validatable.rb', line 35 def save(with_validations = true) return false if with_validations && self.class.validate_on_save && !valid? super() end |