mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
add optional shared link to templates
This commit is contained in:
1 parent
c91b4a765b
commit
e77b5fa2c9
21 files changed
+258
-20
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class TemplatesShareLinkController < ApplicationController
|
||||
load_and_authorize_resource :template
|
||||
|
||||
def show; end
|
||||
|
||||
def create
|
||||
authorize!(:update, @template)
|
||||
|
||||
@template.update!(template_params)
|
||||
|
||||
head :ok
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def template_params
|
||||
params.require(:template).permit(:shared_link)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user