configure form link

This commit is contained in:
Pete Matsyburka
2024-11-18 21:08:32 +02:00
parent 599785b6d1
commit 5a48ab0360
3 changed files with 8 additions and 3 deletions
@@ -15,6 +15,7 @@ class ApplicationController < ActionController::Base
helper_method :button_title,
:current_account,
:form_link_host,
:svg_icon
impersonates :user, with: ->(uuid) { User.find_by(uuid:) }
@@ -105,6 +106,10 @@ class ApplicationController < ActionController::Base
render_to_string(partial: "icons/#{icon_name}", locals: { class: })
end
def form_link_host
Docuseal.default_url_options[:host]
end
def maybe_redirect_com
return if request.domain != 'docuseal.co'