X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c809f79912a3b998ddf3a21973582254db564183..1557f9cf8973abf4af50de95b4f995a59b601cea:/app/controllers/user_preference_controller.rb diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb index df5f279b8..059f00bbe 100644 --- a/app/controllers/user_preference_controller.rb +++ b/app/controllers/user_preference_controller.rb @@ -62,7 +62,7 @@ class UserPreferenceController < ApplicationController preference.save! end - render :nothing => true, :content_type => "text/plain" + render :text => "", :content_type => "text/plain" end ## @@ -79,7 +79,7 @@ class UserPreferenceController < ApplicationController pref.v = request.raw_post.chomp pref.save! - render :nothing => true, :content_type => "text/plain" + render :text => "", :content_type => "text/plain" end ## @@ -87,6 +87,6 @@ class UserPreferenceController < ApplicationController def delete_one UserPreference.find(@user.id, params[:preference_key]).delete - render :nothing => true, :content_type => "text/plain" + render :text => "", :content_type => "text/plain" end end