- AllowsValidators =
[
'presence', 'uniqueness', 'acceptance', 'confirmation', 'exclusion', 'format', 'inclusion', 'length', 'numericality'
]
- InclusionOptions =
{
:range => 'in_range',
:array => 'in_array'
}
- OptionMethods =
{
:minimum => 'is_at_least',
:maximum => 'is_at_most',
:is => 'is_equal_to',
:scope => 'scoped_to',
:too_short => 'with_short_message',
:too_long => 'with_long_message',
:message => 'with_message',
:only_integer => 'only_integer',
:case_insensitive => 'case_insensitive',
:allow_nil => 'allow_nil',
:allow_blank => 'allow_blank',
:in => InclusionOptions,
:within => InclusionOptions
}
- Filters =
{
:allow_blank => ['inclusion'],
:allow_nil => ['inclusion', 'uniqueness'],
:case_insensitive => ['uniqueness']
}
- AttrsFilters =
['friendly_id']