displays notifications in proposal view

This commit is contained in:
rgarcia
2016-06-06 12:21:48 +02:00
parent 0ef316de91
commit fc6cc090f8
5 changed files with 27 additions and 1 deletions

View File

@@ -2,7 +2,6 @@ class ProposalsController < ApplicationController
include CommentableActions
include FlagActions
before_action :parse_search_terms, only: [:index, :suggest]
before_action :parse_advanced_search_terms, only: :index
before_action :parse_tag_filter, only: :index
@@ -22,6 +21,7 @@ class ProposalsController < ApplicationController
def show
super
@notifications = @proposal.notifications
redirect_to proposal_path(@proposal), status: :moved_permanently if request.path != proposal_path(@proposal)
end