Sha256: 184920c6b2b9014c435ebcdad8054d9f4f9fba77728b54fd0af0c7902bbf62b8
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 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
3 entries across 3 versions & 1 rubygems