X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ff97501ed01488f8ff8e9d2e7b93b4f295f71725..506c0b5f0db8aca79ef61fa45cad508b7167817a:/app/controllers/user_preference_controller.rb?ds=sidebyside diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb index b59289792..dd4ea8bb1 100644 --- a/app/controllers/user_preference_controller.rb +++ b/app/controllers/user_preference_controller.rb @@ -57,7 +57,7 @@ class UserPreferenceController < ApplicationController new_preferences.each_value(&:save!) - render :nothing => true, :content_type => "text/plain" + render :plain => "" end ## @@ -74,7 +74,7 @@ class UserPreferenceController < ApplicationController pref.v = request.raw_post.chomp pref.save! - render :nothing => true, :content_type => "text/plain" + render :plain => "" end ## @@ -82,6 +82,6 @@ class UserPreferenceController < ApplicationController def delete_one UserPreference.find([@user.id, params[:preference_key]]).delete - render :nothing => true, :content_type => "text/plain" + render :plain => "" end end