From 186d7fb3340dfdc7eb0e57e6083c061f90e80e8e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 23 Feb 2005 14:28:53 +0000 Subject: Removed unnecessary table_name overwrite #695 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/examples/validation.rb | 3 --- 1 file changed, 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) -- cgit v1.2.3