refactor clone

This commit is contained in:
Pete Matsyburka committed 2026-01-08 09:34:45 +02:00
1 parent 40f8093e00
commit c4ba892559
9 files changed
+103 -59

No files matched your search

@@ -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