diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-28 02:05:57 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-28 02:05:57 +0900 |
commit | 69dc57cd18bdda82e599de316b080dfc676e0987 (patch) | |
tree | 04c2d2845188961ba8dd8ff6f71b9a4f3228b674 /activerecord/lib/active_record | |
parent | fcc47bcfccc7578aa0414710eecdad006085a911 (diff) | |
download | rails-69dc57cd18bdda82e599de316b080dfc676e0987.tar.gz rails-69dc57cd18bdda82e599de316b080dfc676e0987.tar.bz2 rails-69dc57cd18bdda82e599de316b080dfc676e0987.zip |
Remove unused `Association#interpolate`
Using `Association#interpolate` was removed since #11251.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations/association.rb | 8 |
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)] } |