|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class ApplicationController < ActionController::Base
|
|
|
|
|
BROWSER_LOCALE_REGEXP = /\A\w{2}(?:-\w{2})?/
|
|
|
|
|
|
|
|
|
|
@ -10,8 +8,8 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
|
|
|
|
|
around_action :with_locale
|
|
|
|
|
# before_action :sign_in_for_demo, if: -> { Docuseal.demo? }
|
|
|
|
|
before_action :maybe_redirect_to_setup, unless: :signed_in?
|
|
|
|
|
before_action :authenticate_user!, unless: :devise_controller?
|
|
|
|
|
before_action :maybe_authenticate_via_token
|
|
|
|
|
before_action :authenticate_via_token!, unless: :devise_controller?
|
|
|
|
|
|
|
|
|
|
helper_method :button_title,
|
|
|
|
|
:current_account,
|
|
|
|
|
|