diff options
-rw-r--r-- | activerecord/examples/validation.rb | 3 |
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) |