summaryrefslogtreecommitdiff
path: root/app/controllers/subparticipants_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/subparticipants_controller.rb')
-rw-r--r--app/controllers/subparticipants_controller.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/subparticipants_controller.rb b/app/controllers/subparticipants_controller.rb
index 3d585ae..62df87b 100644
--- a/app/controllers/subparticipants_controller.rb
+++ b/app/controllers/subparticipants_controller.rb
@@ -17,11 +17,11 @@
class SubparticipantsController < ApplicationController
- before_filter :authentication
- before_filter :block_anonymous_participants
- before_filter :block_subparticipants
- before_filter :check_json_contenttype, :only => :create
- before_filter :check_parent, :only => [:show, :destroy, :update]
+ before_action :authentication
+ before_action :block_anonymous_participants
+ before_action :block_subparticipants
+ before_action :check_json_contenttype, :only => :create
+ before_action :check_parent, :only => [:show, :destroy, :update]
def initialize
super
@@ -33,7 +33,7 @@ class SubparticipantsController < ApplicationController
@body << "subparticipants/" << child.id.to_s << "\n"
end unless childs.empty?
respond_to do |format|
- format.text { render :text => @body, :content_type => "text/uri-list" }
+ format.text { render :plain => @body, :content_type => "text/uri-list" }
end
end
@@ -79,7 +79,7 @@ class SubparticipantsController < ApplicationController
def destroy
subparticipant= Subparticipant.find(params[:id])
subparticipant.participant.destroy
- render :text => "", :layout => false, :status => 200, :content_type => :json
+ render :plain => "", :layout => false, :status => 200, :content_type => :json
end
private