]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/users_controller.rb
Avoid stating the action to render when it just matches the current action
[rails.git] / app / controllers / api / users_controller.rb
index 3180cabccc7cac28ab8c51b808762a55116b58d9..d765b4904e43774dfd879241954dca1366cf12fd 100644 (file)
@@ -13,7 +13,7 @@ module Api
 
     def show
       if @user.visible?
-        render :action => :show, :content_type => "text/xml"
+        render :content_type => "text/xml"
       else
         head :gone
       end
@@ -33,7 +33,7 @@ module Api
 
       @users = User.visible.find(ids)
 
-      render :action => :index, :content_type => "text/xml"
+      render :content_type => "text/xml"
     end
 
     def gpx_files