Sha256: 890a5a71ab6e8837c7150020780ec61e474f61d7e3d6dc74d59bb8415fa16cf4
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
module Solder class UiStateController < ApplicationController before_action :set_ui_state, only: :show def show render json: @ui_state.to_json end def update Rails.cache.write "solder/#{params[:key]}", JSON.parse(params[:attributes]) head :ok end private def ui_state_params params.permit(:attributes, :key) end def set_ui_state @ui_state = Rails.cache.read "solder/#{params[:key]}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solder-0.1.0 | app/controllers/solder/ui_state_controller.rb |