Merge pull request #3167 from consul/backport-1793-cleanup_lines_controller
[Backport] Remove before action not used
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user