add template access

This commit is contained in:
Pete Matsyburka committed 2024-12-08 14:52:22 +02:00
1 parent bacbc4309c
commit 1746920eb5
21 files changed
+139 -17

No files matched your search

+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) }