module Solder class UiStateController < ApplicationController before_action :set_ui_state def show render json: @ui_state.value end def update @ui_state.value = JSON.parse(params[:attributes]) head :ok end private def ui_state_params params.permit(:attributes, :key) end def set_ui_state @ui_state = Kredis.json params[:key] end end end