diff --git a/activerecord/examples/validation.rb b/activerecord/examples/validation.rb index 334a1685f78df227eaae7c528282d4fecc9519f1..e6a448afb8a65a700fcda57d23d1a8a6db5c2b17 100644 --- a/activerecord/examples/validation.rb +++ b/activerecord/examples/validation.rb @@ -16,9 +16,6 @@ # 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)