diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-15 11:41:52 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-15 11:41:52 +0000 |
commit | d96e874e0fdd0e274759397413c58acf9c778e94 (patch) | |
tree | beccf29fdaaa829ed07c918afa1ad6cd12d7d43b /activerecord/lib | |
parent | 232443062e309033d39ccd75a3dd9888ff21c345 (diff) | |
download | rails-d96e874e0fdd0e274759397413c58acf9c778e94.tar.gz rails-d96e874e0fdd0e274759397413c58acf9c778e94.tar.bz2 rails-d96e874e0fdd0e274759397413c58acf9c778e94.zip |
Insignificante...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index efb4368cc5..ab7176401d 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -112,6 +112,7 @@ module ActiveRecord end end + # TODO: Write docs for me! def validates_presence_of(*attr_names) configuration = { :message => "can't be empty", :on => :save } configuration.update(attr_names.pop) if attr_names.last.is_a?(Hash) |