Sha256: ef2d4ae965359ccf48f1295c7fcaab819c5f1f8956e987e5f51834d699d7ba97
Contents?: true
Size: 803 Bytes
Versions: 589
Compression:
Stored size: 803 Bytes
Contents
module Caboose class StationController < ApplicationController layout 'caboose/modal' # GET /station def index @user = logged_in_user page_id = params['page_id'].nil? ? 1 : params['page_id'] @page = Page.find(page_id) @tab = params['tab'] if (@user.nil? || @user == Caboose::User.logged_out_user) redirect_to "/login" end end # GET /station/plugin-count def plugin_count render :json => Caboose::plugins.count end # PUT /admin/station def index_admin session[:caboose_station_state] = params[:state] session[:caboose_station_open_tabs] = params[:open_tabs] session[:caboose_station_return_url] = params[:return_url] render :json => true end end end
Version data entries
589 entries across 589 versions & 1 rubygems