You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current.theme would be nice to be able to not only read easily, but set. So that that them can be rolled out iteratively and selectively disabled / default to the main. Eg, /admin won't be themed. It'd be nice to be able to set Current.theme = '2017' in a before_action in admin_controller.rb.
The text was updated successfully, but these errors were encountered:
* Rename method set_locale_from_subdomain to set_current_locale
* Set Current.theme before each request
* Use Current.theme in Theme.name
* s/Theme.name/Current.theme
* Delete unused Theme model
This also feels like a place that we could benefit from using
CurrentAttributes
(added in Rails 5.2).They're thread locale globals. https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html
Current.theme
would be nice to be able to not only read easily, but set. So that that them can be rolled out iteratively and selectively disabled / default to the main. Eg,/admin
won't be themed. It'd be nice to be able to setCurrent.theme = '2017'
in abefore_action
inadmin_controller.rb
.The text was updated successfully, but these errors were encountered: