Method: Reform::Contract::Validate#validate
- Defined in:
- lib/reform/contract/validate.rb
#validate ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/reform/contract/validate.rb', line 2 def validate = {:errors => errs = Reform::Contract::Errors.new(self), :prefix => []} validate!() self.errors = errs # if the AM valid? API wouldn't use a "global" variable this would be better. errors.valid? end |