Include num_changes in changeset xml response
This commit is contained in:
parent
395eaea06c
commit
fe644bbd72
1 changed files with 1 additions and 0 deletions
|
@ -232,6 +232,7 @@ class Changeset < ActiveRecord::Base
|
||||||
bbox.to_unscaled.add_bounds_to(el1, "_") if bbox.complete?
|
bbox.to_unscaled.add_bounds_to(el1, "_") if bbox.complete?
|
||||||
|
|
||||||
el1["comments_count"] = comments.length.to_s
|
el1["comments_count"] = comments.length.to_s
|
||||||
|
el1["changes_count"] = num_changes.to_s
|
||||||
|
|
||||||
if include_discussion
|
if include_discussion
|
||||||
el2 = XML::Node.new("discussion")
|
el2 = XML::Node.new("discussion")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue