X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c809f79912a3b998ddf3a21973582254db564183..3bbdb004477a21e736f3613788356b12ba7f564f:/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 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