]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/notes/index.json.jsonify
Simplify partial rendering when the partial is named after the model
[rails.git] / app / views / api / notes / index.json.jsonify
index cb75d41c4093d477d9c75367277aea2f8708abe7..bfc8ffcf854f3ed87c9569d05168462c8d52a725 100644 (file)
@@ -1,5 +1,5 @@
 json.type "FeatureCollection"
 
 json.features(@notes) do |note|
-  json.ingest! render(:partial => "note", :object => note)
+  json.ingest! render(note)
 end