use union all

This commit is contained in:
Pete Matsyburka
2025-07-01 09:16:50 +03:00
parent 8ad70b7e74
commit eef2d9d599
2 changed files with 2 additions and 2 deletions
@@ -57,7 +57,7 @@ class TemplatesDashboardController < ApplicationController
rel = Template.where(
Template.arel_table[:id].in(
rel.where(folder_id: current_account.default_template_folder.id).select(:id).arel
.union(shared_template_ids.arel)
.union(:all, shared_template_ids.arel)
)
)
else