Update validates.rb
This commit is contained in:
parent
cf0fcbe7f6
commit
a6031e40ba
|
@ -154,7 +154,7 @@ module ActiveModel
|
|||
# When creating custom validators, it might be useful to be able to specify
|
||||
# additional default keys. This can be done by overwriting this method.
|
||||
def _validates_default_keys
|
||||
[:if, :unless, :on, :allow_blank, :allow_nil , :strict]
|
||||
[:if, :unless, :on, :allow_blank, :allow_nil, :strict]
|
||||
end
|
||||
|
||||
def _parse_validates_options(options)
|
||||
|
|
Loading…
Reference in New Issue