Permalink
Browse files

Avoid using deprecated arel constants

  • Loading branch information...
rafaelfranca committed Feb 10, 2014
1 parent e063dbc commit 73a431a50b42e56697fed801d27470cd7d8f7990
@@ -163,15 +163,15 @@ def make_constraints(parent, child, tables, join_type)
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) }
end
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) }
@@ -4,7 +4,7 @@ module Associations
module JoinHelper #:nodoc:
def join_type
- Arel::InnerJoin
+ Arel::Nodes::InnerJoin
end
private

0 comments on commit 73a431a

Please sign in to comment.