fixes proposal's management specs

This commit is contained in:
rgarcia
2017-12-15 09:58:12 +01:00
parent 1830a7bb04
commit ebb3c075b0

View File

@@ -14,6 +14,8 @@ class Management::ProposalsController < Management::BaseController
def show
super
@notifications = @proposal.notifications
@related_contents = Kaminari.paginate_array(@proposal.relationed_contents).page(params[:page]).per(5)
redirect_to management_proposal_path(@proposal), status: :moved_permanently if request.path != management_proposal_path(@proposal)
end