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 | |
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
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 1 | ||||
-rw-r--r-- | activerecord/test/inflector_test.rb | 2 |
2 files changed, 2 insertions, 1 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) diff --git a/activerecord/test/inflector_test.rb b/activerecord/test/inflector_test.rb index e9684fc515..7bcff70bdd 100644 --- a/activerecord/test/inflector_test.rb +++ b/activerecord/test/inflector_test.rb @@ -47,7 +47,7 @@ class InflectorTest < Test::Unit::TestCase CamelToUnderscore = { "Product" => "product", "SpecialGuest" => "special_guest", - "AbstractApplicationController" => "abstract_application_controller" + "ApplicationController" => "application_controller" } ClassNameToForeignKeyWithUnderscore = { |