diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 15:04:40 -0800 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 15:04:40 -0800 |
commit | eb26f24bde62cbbcd8ef0e7ee9c64060b098baff (patch) | |
tree | bd9a245d1bc6a6a480363c9254cdcd3508ee6ca4 /activerecord/lib/active_record/locking | |
parent | c01b20b658c9fe4b7d54f4a227a09cb090b5763d (diff) | |
download | rails-eb26f24bde62cbbcd8ef0e7ee9c64060b098baff.tar.gz rails-eb26f24bde62cbbcd8ef0e7ee9c64060b098baff.tar.bz2 rails-eb26f24bde62cbbcd8ef0e7ee9c64060b098baff.zip |
Remove the unused second argument to `substitute_at`
Oh hey, we got to remove some code because of that!
Diffstat (limited to 'activerecord/lib/active_record/locking')
-rw-r--r-- | activerecord/lib/active_record/locking/optimistic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/locking/optimistic.rb b/activerecord/lib/active_record/locking/optimistic.rb index 52eeb8ae1f..ced694ba9a 100644 --- a/activerecord/lib/active_record/locking/optimistic.rb +++ b/activerecord/lib/active_record/locking/optimistic.rb @@ -120,7 +120,7 @@ module ActiveRecord if locking_enabled? column_name = self.class.locking_column column = self.class.columns_hash[column_name] - substitute = self.class.connection.substitute_at(column, relation.bind_values.length) + substitute = self.class.connection.substitute_at(column) relation = relation.where(self.class.arel_table[column_name].eq(substitute)) relation.bind_values << [column, self[column_name].to_i] |