From 0a73f77130bbaf733e022e7ea31df9f6f257aa74 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 15 Sep 2015 12:12:51 +0300 Subject: [PATCH] Cleanup #2713 --- app/controllers/registrar/dashboard_controller.rb | 6 ------ config/routes.rb | 1 - 2 files changed, 7 deletions(-) diff --git a/app/controllers/registrar/dashboard_controller.rb b/app/controllers/registrar/dashboard_controller.rb index a2364e973..cdbc70b0c 100644 --- a/app/controllers/registrar/dashboard_controller.rb +++ b/app/controllers/registrar/dashboard_controller.rb @@ -7,11 +7,5 @@ class Registrar::DashboardController < RegistrarController elsif can?(:show, Invoice) redirect_to registrar_invoices_url and return end - - # if current_user.try(:roles) == ['billing'] - # redirect_to registrar_invoices_url and return - # elsif can?(:show, :poll) - # redirect_to registrar_poll_url and return - # end end end diff --git a/config/routes.rb b/config/routes.rb index 676cae912..5431cdbf4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,7 +21,6 @@ Rails.application.routes.draw do namespace :registrar do resource :dashboard root 'dashboard#show' - # root 'polls#show' resources :invoices do member do