method

new

rails latest stable - Class: ActiveModel::EachValidator
new(options)
public

Returns a new validator instance. All options will be available via the options reader, however the :attributes option will be removed and instead be made available through the attributes reader.