|
|
|
@ -3,10 +3,10 @@ class ContestnotificationsController < ApplicationController
|
|
|
|
|
# GET /contestnotifications.json
|
|
|
|
|
layout 'base_newcontest'
|
|
|
|
|
default_search_scope :contestnotifications
|
|
|
|
|
# model_object Contestnotifications
|
|
|
|
|
# before_filter :find_model_object_contest, :except => [:new, :create, :index]
|
|
|
|
|
model_object Contestnotification
|
|
|
|
|
before_filter :find_model_object, :except => [:new, :create, :index]
|
|
|
|
|
before_filter :find_contest_from_association, :except => [:new, :create, :index]
|
|
|
|
|
# before_filter :find_contest_by_contest_id, :only => [:new, :create]
|
|
|
|
|
before_filter :find_contest_by_contest_id, :only => [:new, :create]
|
|
|
|
|
before_filter :find_contest
|
|
|
|
|
before_filter :find_author
|
|
|
|
|
# before_filter :authorize, :except => [:index]
|
|
|
|
@ -71,7 +71,7 @@ class ContestnotificationsController < ApplicationController
|
|
|
|
|
# format.html # show.html.erb
|
|
|
|
|
# format.json { render json: @contestnotification }
|
|
|
|
|
# end
|
|
|
|
|
@notificationcomments = @contestnotifications.notificationcomments
|
|
|
|
|
@notificationcomments = @contestnotification.notificationcomments
|
|
|
|
|
@notificationcomments.reverse! if User.current.wants_notificationcomments_in_reverse_order?
|
|
|
|
|
render :layout => 'base_newcontest'
|
|
|
|
|
|
|
|
|
|