app/controllers/caboose/station_controller.rb in caboose-cms-0.1.101 vs app/controllers/caboose/station_controller.rb in caboose-cms-0.1.102

- old
+ new

@@ -1,10 +1,21 @@ module Caboose class StationController < ApplicationController + layout 'caboose/modal' + + # GET /station + def index + @user = logged_in_user + end + + # GET /station/plugin-count + def plugin_count + render :json => Caboose::plugins.count + end # PUT /admin/station - def index + 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