aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-10 16:00:07 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-10 16:00:07 -0700
commit34c3c64eccdb9cbc1b8e254f3d46b1a3c95d2881 (patch)
tree5b5f63b583cef36c989ffd49059683a23eb8bb0c /activerecord/lib/active_record/associations/join_dependency.rb
parent6537e5044c16de60fe9ccedba9befe0f35b31079 (diff)
downloadrails-34c3c64eccdb9cbc1b8e254f3d46b1a3c95d2881.tar.gz
rails-34c3c64eccdb9cbc1b8e254f3d46b1a3c95d2881.tar.bz2
rails-34c3c64eccdb9cbc1b8e254f3d46b1a3c95d2881.zip
refactor a little so we can remove some methods
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index b3fec5ae0c..6e08f67286 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -80,7 +80,7 @@ module ActiveRecord
end
def join_constraints
- join_root.flat_map(&:join_constraints)
+ join_root.children.flat_map { |c| c.flat_map(&:join_constraints) }
end
def columns