From: Tom Hughes Date: Mon, 31 Aug 2009 23:32:03 +0000 (+0000) Subject: Tidy up. X-Git-Tag: live~7281 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/783748b1e541969e9d9f0701f4b85e45082e9537?ds=inline;hp=543e8c5503dbcc637ae9e95255b8c63d7765c530 Tidy up. --- diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index eeef4b6de..cee66274f 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -1,5 +1,5 @@ class UserController < ApplicationController - layout 'site' + layout 'site', :except => :api_details before_filter :authorize, :only => [:api_details, :api_gpx_files] before_filter :authorize_web, :except => [:api_details, :api_gpx_files] @@ -245,11 +245,6 @@ class UserController < ApplicationController redirect_to :controller => 'user', :action => 'view', :display_name => @user.display_name end - def api_details - # moved implementation to a view. - render :layout => false - end - def api_gpx_files doc = OSM::API.new.get_xml_doc @user.traces.each do |trace|