aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-07-23 17:14:41 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-07-23 17:14:41 +0900
commitbeb6b7add71cc97d907958e4d7a1b5b8e9134cac (patch)
tree328a074262d24d46b0e5168234706d39c276f8b5 /activerecord/lib/active_record/associations
parent1ca571cc472ffea2dfab43ee57d8204e89d5b1a6 (diff)
downloadrails-beb6b7add71cc97d907958e4d7a1b5b8e9134cac.tar.gz
rails-beb6b7add71cc97d907958e4d7a1b5b8e9134cac.tar.bz2
rails-beb6b7add71cc97d907958e4d7a1b5b8e9134cac.zip
`load_target` is a public method
`send` is unnecessary.
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/has_one_through_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_one_through_association.rb b/activerecord/lib/active_record/associations/has_one_through_association.rb
index 08e0ec691f..604904abcc 100644
--- a/activerecord/lib/active_record/associations/has_one_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_one_through_association.rb
@@ -15,7 +15,7 @@ module ActiveRecord
ensure_not_nested
through_proxy = owner.association(through_reflection.name)
- through_record = through_proxy.send(:load_target)
+ through_record = through_proxy.load_target
if through_record && !record
through_record.destroy