Removed share view for Legislation Proposals

This commit is contained in:
María Checa
2017-10-26 17:13:04 +02:00
parent f15ef5b66b
commit 658d115c91
3 changed files with 1 additions and 59 deletions

View File

@@ -30,7 +30,7 @@ class Legislation::ProposalsController < Legislation::BaseController
@proposal = Legislation::Proposal.new(proposal_params.merge(author: current_user))
if @proposal.save
redirect_to share_legislation_process_proposal_path(params[:process_id], @proposal), notice: I18n.t('flash.actions.create.proposal')
redirect_to legislation_process_proposal_path(params[:process_id], @proposal), notice: I18n.t('flash.actions.create.proposal')
else
render :new
end
@@ -46,12 +46,6 @@ class Legislation::ProposalsController < Legislation::BaseController
set_legislation_proposal_votes(@proposal)
end
def share
if Setting['proposal_improvement_path'].present?
@proposal_improvement_path = Setting['proposal_improvement_path']
end
end
private
def proposal_params