Insignificante...

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-15 11:41:52 +00:00
parent 232443062e
commit d96e874e0f
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -47,7 +47,7 @@ class InflectorTest < Test::Unit::TestCase
CamelToUnderscore = {
"Product" => "product",
"SpecialGuest" => "special_guest",
"AbstractApplicationController" => "abstract_application_controller"
"ApplicationController" => "application_controller"
}
ClassNameToForeignKeyWithUnderscore = {