mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
adjust nav
This commit is contained in:
1 parent
44972fcc39
commit
073859a4b7
17 files changed
+287
-72
No files matched your search
@@ -4,9 +4,12 @@ class TemplatesVersionsController < ApplicationController
|
||||
load_and_authorize_resource :template
|
||||
|
||||
def index
|
||||
versions = @template.template_versions.order(id: :desc).preload(:author)
|
||||
@versions = @template.template_versions.order(id: :desc).preload(:author)
|
||||
|
||||
render json: versions.as_json(TemplateVersions::SERIALIZE_PARAMS)
|
||||
respond_to do |format|
|
||||
format.json { render json: @versions.as_json(TemplateVersions::SERIALIZE_PARAMS) }
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
Reference in new issue
Block a user