1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

r1615@asus: jeremy | 2005-07-03 08:06:00 -0700

oops, back out DELETE typo


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2005-07-03 08:32:47 +00:00
parent 6e39c9e561
commit 9a10b31fe8

View file

@ -962,11 +962,10 @@ module ActiveRecord #:nodoc:
# be made (since they can't be persisted).
def destroy
unless new_record?
connection.delete(
"DELETE
"WHERE #{self.class.primary_key} = #{quote(id)}",
"#{self.class.name} Destroy"
)
connection.delete <<-end_sql, "#{self.class.name} Destroy"
DELETE FROM #{self.class.table_name}
WHERE #{self.class.primary_key} = #{quoted_id}
end_sql
end
freeze