Notes: avoid calling json.partial! in loop
This commit is contained in:
parent
14184b1b2e
commit
341ff0a06b
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
json.type "FeatureCollection"
|
json.type "FeatureCollection"
|
||||||
|
|
||||||
json.features(@notes) do |note|
|
json.features do
|
||||||
json.partial! note
|
json.array! @notes, :partial => "note", :as => :note
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue