mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
fix query
This commit is contained in:
1 parent
de744e2f6c
commit
7c4307ef10
1 file changed
+1
-1
@@ -13,7 +13,7 @@ module Abilities
|
||||
.select(:template_id)
|
||||
|
||||
join_query = Template.arel_table
|
||||
.join(template_ids.arel.union(shared_ids.arel).as('union_ids'))
|
||||
.join(Arel::Nodes::TableAlias.new(template_ids.arel.union(shared_ids.arel), 'union_ids'))
|
||||
.on(Template.arel_table[:id].eq(Arel::Table.new(:union_ids)[:id]))
|
||||
|
||||
Template.joins(join_query.join_sources.first)
|
||||
|
||||
Reference in new issue
Block a user