aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-17 15:04:40 -0800
committerSean Griffin <sean@thoughtbot.com>2014-11-17 15:04:40 -0800
commiteb26f24bde62cbbcd8ef0e7ee9c64060b098baff (patch)
treebd9a245d1bc6a6a480363c9254cdcd3508ee6ca4 /activerecord/lib/active_record/associations/join_dependency
parentc01b20b658c9fe4b7d54f4a227a09cb090b5763d (diff)
downloadrails-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/associations/join_dependency')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency/join_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency/join_association.rb b/activerecord/lib/active_record/associations/join_dependency/join_association.rb
index e7d3c9ba40..5dede5527d 100644
--- a/activerecord/lib/active_record/associations/join_dependency/join_association.rb
+++ b/activerecord/lib/active_record/associations/join_dependency/join_association.rb
@@ -67,7 +67,7 @@ module ActiveRecord
value = foreign_klass.base_class.name
column = klass.columns_hash[reflection.type.to_s]
- substitute = klass.connection.substitute_at(column, bind_values.length)
+ substitute = klass.connection.substitute_at(column)
bind_values.push [column, value]
constraint = constraint.and table[reflection.type].eq substitute
end