Permalink
Browse files

Insignificante...

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 2324430 commit d96e874e0fdd0e274759397413c58acf9c778e94 @dhh dhh committed Dec 15, 2004
Showing with 2 additions and 1 deletion.
  1. +1 −0 activerecord/lib/active_record/validations.rb
  2. +1 −1 activerecord/test/inflector_test.rb
@@ -112,6 +112,7 @@ def validates_acceptance_of(*attr_names)
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)
@@ -47,7 +47,7 @@ class InflectorTest < Test::Unit::TestCase
CamelToUnderscore = {
"Product" => "product",
"SpecialGuest" => "special_guest",
- "AbstractApplicationController" => "abstract_application_controller"
+ "ApplicationController" => "application_controller"
}
ClassNameToForeignKeyWithUnderscore = {

0 comments on commit d96e874

Please sign in to comment.