diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-25 11:20:42 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-25 11:20:42 +0000 |
commit | 256b594a03f184e63c4682a427a1982cbf99f6fa (patch) | |
tree | a4d80a7d4fc1bccd3fcb80f06179b2a7235e506c /activerecord/lib | |
parent | 2f11b7cfeeb9a25225c2f31e95afabcd3e43bb41 (diff) | |
download | rails-256b594a03f184e63c4682a427a1982cbf99f6fa.tar.gz rails-256b594a03f184e63c4682a427a1982cbf99f6fa.tar.bz2 rails-256b594a03f184e63c4682a427a1982cbf99f6fa.zip |
Fixed documentation #538
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 53942d34f7..4d1c92330b 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -254,7 +254,7 @@ module ActiveRecord # Configuration options: # * <tt>in</tt> - An enumerable object of available items # * <tt>message</tt> - Specifieds a customer error message (default is: "is not included in the list") - # * <tt>allows_nil</tt> - If set to true, skips this validation if the attribute is null (default is: false) + # * <tt>allow_nil</tt> - If set to true, skips this validation if the attribute is null (default is: false) def validates_inclusion_of(*attr_names) configuration = { :message => ActiveRecord::Errors.default_error_messages[:inclusion], :on => :save } configuration.update(attr_names.pop) if attr_names.last.is_a?(Hash) |