mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:01 -05:00
Removed unnecessary table_name overwrite #695
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user