1
0
Fork 0
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:
Lonre Wang 2017-12-10 22:17:48 +07:00 committed by GitHub
parent cf0fcbe7f6
commit a6031e40ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)