From 0858f4c6f4a986cd271464c77dbb2c8047ba6bc4 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 3 Jan 2019 17:44:44 +0100 Subject: [PATCH] cleanup (remove unused code) --- app/controllers/budgets/ballot/lines_controller.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/budgets/ballot/lines_controller.rb b/app/controllers/budgets/ballot/lines_controller.rb index 95f21ebb7..c2e617e08 100644 --- a/app/controllers/budgets/ballot/lines_controller.rb +++ b/app/controllers/budgets/ballot/lines_controller.rb @@ -2,7 +2,6 @@ module Budgets module Ballot class LinesController < ApplicationController before_action :authenticate_user! - #before_action :ensure_final_voting_allowed before_action :load_budget before_action :load_ballot before_action :load_tag_cloud @@ -33,10 +32,6 @@ module Budgets private - def ensure_final_voting_allowed - return head(:forbidden) unless @budget.balloting? - end - def line_params params.permit(:investment_id, :budget_id) end