Skip to content

Commit

Permalink
Don't send table_name when there's no need to.
Browse files Browse the repository at this point in the history
  • Loading branch information
miloops committed Oct 7, 2009
1 parent 1d58548 commit 942d4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -2573,7 +2573,7 @@ def delete
# be made (since they can't be persisted). # be made (since they can't be persisted).
def destroy def destroy
unless new_record? 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 end


@destroyed = true @destroyed = true
Expand Down

0 comments on commit 942d4b2

Please sign in to comment.