add template access

This commit is contained in:
Pete Matsyburka
2024-12-08 01:37:20 +02:00
parent bacbc4309c
commit 1746920eb5
21 changed files with 139 additions and 17 deletions
+1
View File
@@ -62,6 +62,7 @@ class Template < ApplicationRecord
has_many :submissions, dependent: :destroy
has_many :template_sharings, dependent: :destroy
has_many :template_accesses, dependent: :destroy
scope :active, -> { where(archived_at: nil) }
scope :archived, -> { where.not(archived_at: nil) }