validate_each(record, attribute, value) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/format.rb, line 10
      def validate_each(record, attribute, value)
        if options[:with]
          regexp = resolve_value(record, options[:with])
          record_error(record, attribute, :with, value) unless regexp.match?(value.to_s)
        elsif options[:without]
          regexp = resolve_value(record, options[:without])
          record_error(record, attribute, :without, value) if regexp.match?(value.to_s)
        end
      end
Register or log in to add new notes.