Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Oct 25, 2020
1 parent 7d1035a commit 2628133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mobility/backends/active_record/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def join_translations(relation, locale, join_type)
def already_joined?(relation, locale, join_type)
if join = get_join(relation, locale)
return true if (join_type == Visitor::OUTER_JOIN) || (Visitor::INNER_JOIN === join)
relation.joins_values = relation.joins_values - [join]
relation.joins_values -= [join]
end
false
end
Expand Down

0 comments on commit 2628133

Please sign in to comment.