mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
optimize select
This commit is contained in:
1 parent
e54d76f0e2
commit
3cb37748e9
11 files changed
+60
-18
No files matched your search
@@ -81,6 +81,8 @@ class Template < ApplicationRecord
|
||||
scope :active, -> { where(archived_at: nil) }
|
||||
scope :archived, -> { where.not(archived_at: nil) }
|
||||
|
||||
scope :select_for_list, -> { select(:id, :name, :author_id, :account_id, :created_at, :archived_at, :folder_id) }
|
||||
|
||||
def application_key
|
||||
external_id
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user