app/controllers/my_base_devise_controller.rb
# typed: strict
# frozen_string_literal: true
class MyBaseDeviseController < ApplicationController
extend T::Sig
layout :devise_layout
private
sig { returns(String) }
def devise_layout
# For one particular devise action (editing a user profile) we don't want to use the "minimal" layout
# Also we don't want the minimal layout ever with the tailwind theme
if show_tailwind_theme? || (controller_name == "registrations" && action_name == "edit")
"application"
else
"minimal"
end
end
end