aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-10-07 12:17:51 -0300
committerEmilio Tagua <miloops@gmail.com>2009-10-07 12:17:51 -0300
commit942d4b2e4fb6128c3163fb24893e3de9ae73e7c3 (patch)
treeadae89187083e523d24e44de244c2f5268f82d3c /activerecord
parent1d5854826b27e5e8bfb041c57a49d1e46178b49e (diff)
downloadrails-942d4b2e4fb6128c3163fb24893e3de9ae73e7c3.tar.gz
rails-942d4b2e4fb6128c3163fb24893e3de9ae73e7c3.tar.bz2
rails-942d4b2e4fb6128c3163fb24893e3de9ae73e7c3.zip
Don't send table_name when there's no need to.
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 8ea6c69fc5..4472db28ce 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -2573,7 +2573,7 @@ module ActiveRecord #:nodoc:
# 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