Method: Modelish::Validations#validate
- Defined in:
- lib/modelish/validations.rb
#validate ⇒ Hash<Symbol,Array>
Validates all properties based on configured validators.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/modelish/validations.rb', line 17 def validate errors = {} call_validators do |name, | errors[name] ||= [] errors[name] << to_error() end errors end |