]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/2279'
authorTom Hughes <tom@compton.nu>
Wed, 26 Jun 2019 13:07:29 +0000 (14:07 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 26 Jun 2019 13:07:29 +0000 (14:07 +0100)
app/controllers/api/users_controller.rb
app/controllers/site_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
index 471e9f3c5636d75d54765fc2854919e9a4da11e1..57ac075010fd837609a4170ab96883c78ff83c3d 100644 (file)
@@ -126,7 +126,7 @@ class SiteController < ApplicationController
       :style_src => %w['unsafe-inline']
     )
 
-    render "id", :layout => false
+    render :layout => false
   end
 
   private