Merge pull request #3167 from consul/backport-1793-cleanup_lines_controller

[Backport] Remove before action not used
This commit is contained in:
Julian Nicolas Herrero
2019-01-10 09:38:07 +01:00
committed by GitHub

View File

@@ -2,7 +2,6 @@ module Budgets
module Ballot module Ballot
class LinesController < ApplicationController class LinesController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
#before_action :ensure_final_voting_allowed
before_action :load_budget before_action :load_budget
before_action :load_ballot before_action :load_ballot
before_action :load_tag_cloud before_action :load_tag_cloud
@@ -33,10 +32,6 @@ module Budgets
private private
def ensure_final_voting_allowed
return head(:forbidden) unless @budget.balloting?
end
def line_params def line_params
params.permit(:investment_id, :budget_id) params.permit(:investment_id, :budget_id)
end end