summaryrefslogtreecommitdiff
path: root/app/controllers/memberships_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/memberships_controller.rb')
-rw-r--r--app/controllers/memberships_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/memberships_controller.rb b/app/controllers/memberships_controller.rb
index fa73ae0..42f6578 100644
--- a/app/controllers/memberships_controller.rb
+++ b/app/controllers/memberships_controller.rb
@@ -18,8 +18,8 @@
class MembershipsController < ApplicationController
- before_filter :authentication
- before_filter :add_cookie_header # only for anonymous participants
+ before_action :authentication
+ before_action :add_cookie_header # only for anonymous participants
def initialize
super
@@ -28,7 +28,7 @@ class MembershipsController < ApplicationController
def index
memberships= index_querystring_list
if memberships.empty?
- render :text => "", :content_type => "application/json", :layout => false
+ render :plain => "", :content_type => "application/json", :layout => false
else
respond_to do |format|
format.json { render :json => JSON.pretty_generate(memberships) }