Class: RoundhouseUi::SettingsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RoundhouseUi::SettingsController
- Defined in:
- app/controllers/roundhouse_ui/settings_controller.rb
Overview
Per-viewer preferences. Everything here is stored in the browser and applied client-side — nothing is written server-side, so one operator's choices never change what anyone else sees, and there is no state to migrate or clean up.
The server's only job is to say what is on offer: which palettes exist, and what the host defaults are when a viewer has expressed no preference.
Constant Summary
Constants inherited from ApplicationController
ApplicationController::AUDIT_VERBS
Instance Method Summary collapse
Methods inherited from ApplicationController
allow_in_read_only, guard_in_read_only, #redirect_to, requires_capability
Instance Method Details
#show ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/roundhouse_ui/settings_controller.rb', line 9 def show @palettes = Theme.selectable @host_poll = RoundhouseUi.poll_interval @host_theme = RoundhouseUi.theme.present? end |