Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unnecessary table_name overwrite #695

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 186d7fb3340dfdc7eb0e57e6083c061f90e80e8e 1 parent 5c4f185
@dhh dhh authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  activerecord/examples/validation.rb
View
3  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)
Please sign in to comment.
Something went wrong with that request. Please try again.