Class: Solder::UiStateController

Inherits:
ApplicationController show all
Includes:
ActionView::Helpers::SanitizeHelper
Defined in:
app/controllers/solder/ui_state_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



8
9
10
# File 'app/controllers/solder/ui_state_controller.rb', line 8

def show
  render json: @ui_state.to_json
end

#updateObject



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