diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-05-02 03:40:31 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-05-02 03:40:31 -0300 |
commit | c9896884a46eb96508fc3e0d2a10be47eb195826 (patch) | |
tree | e021abda370e3588da98887ee7757976ce4878bc /activerecord/lib/active_record/locking | |
parent | 5e790d368c5d0e89cfd5ef1245e4b131be63716f (diff) | |
download | rails-c9896884a46eb96508fc3e0d2a10be47eb195826.tar.gz rails-c9896884a46eb96508fc3e0d2a10be47eb195826.tar.bz2 rails-c9896884a46eb96508fc3e0d2a10be47eb195826.zip |
Removed ARel table assignment
Diffstat (limited to 'activerecord/lib/active_record/locking')
-rw-r--r-- | activerecord/lib/active_record/locking/optimistic.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/locking/optimistic.rb b/activerecord/lib/active_record/locking/optimistic.rb index bb28444b07..f66458cc8c 100644 --- a/activerecord/lib/active_record/locking/optimistic.rb +++ b/activerecord/lib/active_record/locking/optimistic.rb @@ -116,7 +116,6 @@ module ActiveRecord lock_col = self.class.locking_column previous_value = send(lock_col).to_i - table = Arel(self.class.table_name) affected_rows = table.where( table[self.class.primary_key].eq(quoted_id).and( table[self.class.locking_column].eq(quote_value(previous_value)) |