aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-10 19:33:48 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-10 19:33:48 -0200
commit73a431a50b42e56697fed801d27470cd7d8f7990 (patch)
tree7b0c16e7c93a56e1b2bcf5d1c61a112acb664c5d /activerecord/lib/active_record/associations/join_dependency.rb
parente063dbc602796c1dcc1d657cefe31d84e45d609f (diff)
downloadrails-73a431a50b42e56697fed801d27470cd7d8f7990.tar.gz
rails-73a431a50b42e56697fed801d27470cd7d8f7990.tar.bz2
rails-73a431a50b42e56697fed801d27470cd7d8f7990.zip
Avoid using deprecated arel constants
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index 295dccf34e..27069157be 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -163,7 +163,7 @@ module ActiveRecord
def make_outer_joins(parent, child)
tables = table_aliases_for(parent, child)
- join_type = Arel::OuterJoin
+ join_type = Arel::Nodes::OuterJoin
joins = make_constraints parent, child, tables, join_type
joins.concat child.children.flat_map { |c| make_outer_joins(child, c) }
@@ -171,7 +171,7 @@ module ActiveRecord
def make_inner_joins(parent, child)
tables = child.tables
- join_type = Arel::InnerJoin
+ join_type = Arel::Nodes::InnerJoin
joins = make_constraints parent, child, tables, join_type
joins.concat child.children.flat_map { |c| make_inner_joins(child, c) }