Changesets: avoid calling json.partial! in loop
This commit is contained in:
parent
fa9654fe90
commit
a5a6713bfc
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
json.partial! "api/root_attributes"
|
json.partial! "api/root_attributes"
|
||||||
|
|
||||||
json.changesets(@changesets) do |changeset|
|
json.changesets do
|
||||||
json.partial! changeset
|
json.array! @changesets, :partial => "changeset", :as => :changeset
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue