valid? (ActiveRecord::Validations)

    # File lib/active_record/validations.rb, line 959
        def valid?
          errors.clear

          run_validations(:validate)
          validate

          if new_record?
            run_validations(:validate_on_create)
            validate_on_create
          else
            run_validations(:validate_on_update)
            validate_on_update
          end

          errors.empty?
        end