Sha256: 49ab0c067ebc7c9ea1fad48f92d9b03d0989140cb1f0780f75a7cb5add688119
Contents?: true
Size: 471 Bytes
Versions: 34
Compression:
Stored size: 471 Bytes
Contents
class Backend::StateSessionsController < BackendController def index render :json => current_account.state_sessions end def create current_account.state_sessions.find_or_create_by_component(params[:id]).update_attribute(:data, params[:data]) render :nothing => true end def destroy state_session = current_account.state_sessions.find_by_component(params[:id]) state_session.destroy if state_session render :nothing => true end end
Version data entries
34 entries across 34 versions & 1 rubygems