summaryrefslogtreecommitdiff
path: root/app/controllers/switchboards_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/switchboards_controller.rb')
-rw-r--r--app/controllers/switchboards_controller.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/controllers/switchboards_controller.rb b/app/controllers/switchboards_controller.rb
index d3424ad..f48e7fb 100644
--- a/app/controllers/switchboards_controller.rb
+++ b/app/controllers/switchboards_controller.rb
@@ -3,30 +3,14 @@ class SwitchboardsController < ApplicationController
authorize_resource :switchboard, :through => :user
def index
- if @user.nil?
- @user = current_user
- end
@switchboards = @user.switchboards
spread_breadcrumbs
-
- respond_to do |format|
- format.html
- format.json { render json: @switchboards }
- end
end
def show
- if @user.nil?
- @user = current_user
- end
@switchboard = @user.switchboards.find(params[:id])
@switchboard_entries = @switchboard.switchboard_entries
spread_breadcrumbs
-
- respond_to do |format|
- format.html
- format.json { render json: @switchboard }
- end
end
def new