Method: Reform::Contract::Validate#validate

Defined in:
lib/reform/contract/validate.rb

#validateObject



2
3
4
5
6
7
8
9
10
# File 'lib/reform/contract/validate.rb', line 2

def validate
  options = {:errors => errs = Reform::Contract::Errors.new(self), :prefix => []}

  validate!(options)

  self.errors = errs # if the AM valid? API wouldn't use a "global" variable this would be better.

  errors.valid?
end