[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:
parent
114105a788
commit
5b106a3453
@ -1,6 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Settings::FlavoursController < Settings::BaseController
|
||||
include ThemeHelper
|
||||
|
||||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user