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
1 changed files with 1 additions and 1 deletions

View File

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