Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call.
This commit is contained in:
parent
97769170fd
commit
d4954bc7b1
2 changed files with 4 additions and 1 deletions
|
@ -263,6 +263,9 @@ class ApiController < ApplicationController
|
|||
changesets = XML::Node.new 'changesets'
|
||||
changesets['maximum_elements'] = Changeset::MAX_ELEMENTS.to_s
|
||||
api << changesets
|
||||
timeout = XML::Node.new 'timeout'
|
||||
timeout['seconds'] = APP_CONFIG['api_timeout'].to_s
|
||||
api << timeout
|
||||
|
||||
doc.root << api
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue