Class: Solder::UiStateController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Solder::UiStateController
- Includes:
- ActionView::Helpers::SanitizeHelper
- Defined in:
- app/controllers/solder/ui_state_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 |
# File 'app/controllers/solder/ui_state_controller.rb', line 8 def show render json: @ui_state.to_json end |
#update ⇒ Object
12 13 14 15 16 17 |
# File 'app/controllers/solder/ui_state_controller.rb', line 12 def update Rails.cache.write "solder/#{ui_state_params[:key]}", parsed_attributes records_to_touch.map(&:touch) head :ok end |