diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 18:00:24 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 18:00:24 -0800 |
commit | 0afebd5b31bdc6edc1399c77153e65f5ea156fe1 (patch) | |
tree | 65635aca19298dacd6275501781ffd27fd7cd90c /activerecord/lib | |
parent | 3ec212e3c9c815e9993cbea409c60774ea75cd30 (diff) | |
download | rails-0afebd5b31bdc6edc1399c77153e65f5ea156fe1.tar.gz rails-0afebd5b31bdc6edc1399c77153e65f5ea156fe1.tar.bz2 rails-0afebd5b31bdc6edc1399c77153e65f5ea156fe1.zip |
no need for self
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb | 2 |
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 |