aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-01 18:00:24 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-01 18:00:24 -0800
commit0afebd5b31bdc6edc1399c77153e65f5ea156fe1 (patch)
tree65635aca19298dacd6275501781ffd27fd7cd90c /activerecord/lib/active_record/associations
parent3ec212e3c9c815e9993cbea409c60774ea75cd30 (diff)
downloadrails-0afebd5b31bdc6edc1399c77153e65f5ea156fe1.tar.gz
rails-0afebd5b31bdc6edc1399c77153e65f5ea156fe1.tar.bz2
rails-0afebd5b31bdc6edc1399c77153e65f5ea156fe1.zip
no need for self
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb b/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
index 3db80d341f..4dd11a7366 100644
--- a/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
+++ b/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
@@ -52,7 +52,7 @@ module ActiveRecord
def find_parent_in(other_join_dependency)
other_join_dependency.join_parts.detect do |join_part|
- self.parent == join_part
+ parent == join_part
end
end