aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 14:28:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 14:28:53 +0000
commit186d7fb3340dfdc7eb0e57e6083c061f90e80e8e (patch)
treeb3ac555093de3c08468bdf56ad8c4bef0f8ca894
parent5c4f1859970d06228a0b67cad6d4486c1526ef2a (diff)
downloadrails-186d7fb3340dfdc7eb0e57e6083c061f90e80e8e.tar.gz
rails-186d7fb3340dfdc7eb0e57e6083c061f90e80e8e.tar.bz2
rails-186d7fb3340dfdc7eb0e57e6083c061f90e80e8e.zip
Removed unnecessary table_name overwrite #695
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/examples/validation.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/examples/validation.rb b/activerecord/examples/validation.rb
index 334a1685f7..e6a448afb8 100644
--- a/activerecord/examples/validation.rb
+++ b/activerecord/examples/validation.rb
@@ -16,9 +16,6 @@ logger.info "\nCreate tables"
# Class setup ---------------
class Person < ActiveRecord::Base
- # Active Record can only guess simple table names like Card/cards, Company/companies
- def self.table_name() "people" end
-
# Using
def self.authenticate(name, pass)
# find_first "name = '#{name}' AND pass = '#{pass}'" would be open to sql-injection (in a web-app scenario)