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

Removed ARel table assignment

This commit is contained in:
Emilio Tagua 2009-05-02 03:40:31 -03:00
parent 5e790d368c
commit c9896884a4

View file

@ -116,7 +116,6 @@ module ActiveRecord
lock_col = self.class.locking_column lock_col = self.class.locking_column
previous_value = send(lock_col).to_i previous_value = send(lock_col).to_i
table = Arel(self.class.table_name)
affected_rows = table.where( affected_rows = table.where(
table[self.class.primary_key].eq(quoted_id).and( table[self.class.primary_key].eq(quoted_id).and(
table[self.class.locking_column].eq(quote_value(previous_value)) table[self.class.locking_column].eq(quote_value(previous_value))