mirror of https://github.com/rails/rails
Insignificante...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
232443062e
commit
d96e874e0f
|
@ -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)
|
||||
|
|
|
@ -47,7 +47,7 @@ class InflectorTest < Test::Unit::TestCase
|
|||
CamelToUnderscore = {
|
||||
"Product" => "product",
|
||||
"SpecialGuest" => "special_guest",
|
||||
"AbstractApplicationController" => "abstract_application_controller"
|
||||
"ApplicationController" => "application_controller"
|
||||
}
|
||||
|
||||
ClassNameToForeignKeyWithUnderscore = {
|
||||
|
|
Loading…
Reference in New Issue