fixes proposal's management specs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user