Browse files

Don't send table_name when there's no need to.

  • Loading branch information...
1 parent 1d58548 commit 942d4b2e4fb6128c3163fb24893e3de9ae73e7c3 @miloops miloops committed Oct 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -2573,7 +2573,7 @@ def delete
# be made (since they can't be persisted).
def destroy
unless new_record?
- self.class.arel_table(self.class.table_name).conditions(self.class.arel_table[self.class.primary_key].eq(id)).delete
+ self.class.arel_table.conditions(self.class.arel_table[self.class.primary_key].eq(id)).delete
end
@destroyed = true

0 comments on commit 942d4b2

Please sign in to comment.