Skip to content

Commit e498734

Browse files
committed
Patch: fix join
I was created a PR in the original repo: cerebris#1471
1 parent d3c094b commit e498734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/active_relation/join_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def self.get_join_arel_node(records, relationship, join_type, options = {})
101101
table_name = relationship.resource_klass._table_name
102102

103103
last_join = join_sources.find { |j|
104-
valid_join_types.any? { |t| j.is_a?(t) } && j.left.name == table_name
104+
valid_join_types.any? { |t| j.is_a?(t) } && j.left.table_name == table_name
105105
}
106106
end
107107

0 commit comments

Comments
 (0)