adjust native

This commit is contained in:
Pete Matsyburka committed 2026-09-23 11:00:17 +03:00
1 parent 6f31bd7af8
commit 66758d45bc
21 files changed
+379 -64

No files matched your search

+2 -12
View File
@@ -10,22 +10,12 @@ class TestingAccountsController < ApplicationController
impersonate_user(Accounts.find_or_create_testing_user(true_user.account))
redirect_after_toggle
redirect_back(fallback_location: root_path)
end
def destroy
stop_impersonating_user
redirect_after_toggle
end
private
def redirect_after_toggle
if turbo_native_app?
redirect_to root_path
else
redirect_back(fallback_location: root_path)
end
redirect_back(fallback_location: root_path)
end
end