refactor clone

This commit is contained in:
Pete Matsyburka
2026-01-07 19:30:18 +02:00
parent 40f8093e00
commit c4ba892559
9 changed files with 103 additions and 59 deletions
@@ -17,6 +17,7 @@ class ApplicationController < ActionController::Base
helper_method :button_title,
:current_account,
:true_ability,
:form_link_host,
:svg_icon
@@ -102,6 +103,10 @@ class ApplicationController < ActionController::Base
current_user&.account
end
def true_ability
@true_ability ||= Ability.new(true_user)
end
def maybe_redirect_to_setup
redirect_to setup_index_path unless User.exists?
end