]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/note_controller.rb
Return GeoJSON for notes when JSON format is requested
[rails.git] / app / controllers / note_controller.rb
index c461450451375d217e8652f0839e9506e119b39f..6d428d822d5f4c0322726007d3c757e173cad0a2 100644 (file)
@@ -52,7 +52,7 @@ class NoteController < ApplicationController
       format.rss
       format.js
       format.xml
-      format.json { render :json => @notes.to_json }
+      format.json
       format.gpx
     end
   end
@@ -200,7 +200,7 @@ class NoteController < ApplicationController
     respond_to do |format|
       format.xml
       format.rss
-      format.json { render :json => @note.to_json }
+      format.json
       format.gpx
     end
   end
@@ -256,7 +256,7 @@ class NoteController < ApplicationController
       format.rss { render :action => :list }
       format.js
       format.xml { render :action => :list }
-      format.json { render :json => @notes.to_json }
+      format.json { render :action => :list }
       format.gpx { render :action => :list }
     end
   end