[Fix undefined current_flavour in controllers (/settings/flavours page) (#3400)

* [Glitch] Fix undefined `current_flavour` in controllers

After the theming infrastructure migration (#37612, #37807),
`ThemingConcern` was removed and theme-related methods were moved
to `ThemeHelper`. However, controllers like `Settings::FlavoursController`
call `current_flavour` directly in their actions, which is not accessible
from a view helper module.

Include `ThemeHelper` in `ApplicationController` to restore access to
`current_flavour`, `current_skin`, `current_theme`, and other theme
methods in all controllers.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Include ThemeHelper in Settings::FlavoursController instead of ApplicationController

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jeong Arm 2026-02-16 17:20:51 +09:00 committed by GitHub
parent 114105a788
commit 5b106a3453
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
# frozen_string_literal: true
class Settings::FlavoursController < Settings::BaseController
include ThemeHelper
layout 'admin'
before_action :authenticate_user!