mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update validates.rb
This commit is contained in:
parent
cf0fcbe7f6
commit
a6031e40ba
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ module ActiveModel
|
||||||
# When creating custom validators, it might be useful to be able to specify
|
# When creating custom validators, it might be useful to be able to specify
|
||||||
# additional default keys. This can be done by overwriting this method.
|
# additional default keys. This can be done by overwriting this method.
|
||||||
def _validates_default_keys
|
def _validates_default_keys
|
||||||
[:if, :unless, :on, :allow_blank, :allow_nil , :strict]
|
[:if, :unless, :on, :allow_blank, :allow_nil, :strict]
|
||||||
end
|
end
|
||||||
|
|
||||||
def _parse_validates_options(options)
|
def _parse_validates_options(options)
|
||||||
|
|
Loading…
Reference in a new issue