aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-05-28 22:38:33 +0930
committerGitHub <noreply@github.com>2017-05-28 22:38:33 +0930
commitf4863ddb35260d9873cc535fdfbe82027622e8e6 (patch)
treeaa348092e683028773dbe9f527ffca420729d660 /activerecord
parent01eac87aeedab8c6da6aa72bb2ca3449bf5950ce (diff)
parent69dc57cd18bdda82e599de316b080dfc676e0987 (diff)
downloadrails-f4863ddb35260d9873cc535fdfbe82027622e8e6.tar.gz
rails-f4863ddb35260d9873cc535fdfbe82027622e8e6.tar.bz2
rails-f4863ddb35260d9873cc535fdfbe82027622e8e6.zip
Merge pull request #29250 from kamipo/remove_unused_association_interpolate
Remove unused `Association#interpolate`
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/association.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/associations/association.rb b/activerecord/lib/active_record/associations/association.rb
index 1cb2b2d7c6..6b13e6936f 100644
--- a/activerecord/lib/active_record/associations/association.rb
+++ b/activerecord/lib/active_record/associations/association.rb
@@ -152,14 +152,6 @@ module ActiveRecord
reset
end
- def interpolate(sql, record = nil)
- if sql.respond_to?(:to_proc)
- owner.instance_exec(record, &sql)
- else
- sql
- end
- end
-
# We can't dump @reflection since it contains the scope proc
def marshal_dump
ivars = (instance_variables - [:@reflection]).map { |name| [name, instance_variable_get(name)] }