Skip to content

Commit

Permalink
Fix single table query methods for KeyValue backend
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Jun 15, 2017
1 parent 9dfbede commit 2af4947
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def define_join_method(association_name, translation_class)
relation.joins(m.join(t, join_type).
on(t[:key].eq(attribute).
and(t[:locale].eq(Mobility.locale).
and(t[:translatable_type].eq(name).
and(t[:translatable_type].eq(base_class.name).
and(t[:translatable_id].eq(m[:id]))))).join_sources)
end
end
Expand Down

0 comments on commit 2af4947

Please sign in to comment.