diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-10-07 12:17:51 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-10-07 12:17:51 -0300 |
commit | 942d4b2e4fb6128c3163fb24893e3de9ae73e7c3 (patch) | |
tree | adae89187083e523d24e44de244c2f5268f82d3c /activerecord/lib | |
parent | 1d5854826b27e5e8bfb041c57a49d1e46178b49e (diff) | |
download | rails-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/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
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 |