From 8b0e3c15152c58a42b75d92e8a93e02ee2c367b4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 31 Jul 2007 08:21:16 +0000 Subject: [PATCH] Removed unused preferences method from the user controller - the field no longer exists anyway so it was not at all useful. --- app/controllers/user_controller.rb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 80402f677..0042be316 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -1,7 +1,7 @@ class UserController < ApplicationController layout 'site' - before_filter :authorize, :only => [:preferences, :api_details, :api_gpx_files] + before_filter :authorize, :only => [:api_details, :api_gpx_files] before_filter :authorize_web, :only => [:account, :go_public, :view, :diary, :make_friend] before_filter :require_user, :only => [:set_home, :account, :go_public, :make_friend] @@ -158,19 +158,6 @@ class UserController < ApplicationController end end - def preferences - @title = 'preferences' - if request.get? - render_text @user.preferences - elsif request.post? or request.put? - @user.preferences = request.raw_post - @user.save! - render :nothing => true - else - render :nothing => true, :status => :method_not_allowed - end - end - def api_details render :text => @user.to_xml.to_s, :content_type => "text/xml" end -- 2.39.5