aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2014-06-27 02:36:04 +0200
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2014-06-27 02:36:04 +0200
commit5235cc3e6fa882ba2c8bb886276981d898a7c0bd (patch)
tree4446a3609834a2a488864587cc544b2cd354cc0b
parent96e0b97370c09a804abeda00205c4647e93ee3f2 (diff)
downloadecs2-5235cc3e6fa882ba2c8bb886276981d898a7c0bd.tar.gz
ecs2-5235cc3e6fa882ba2c8bb886276981d898a7c0bd.zip
Fixed representation of /sys/configs.
The boolean values of the attributes participant_events and selfrouting were quoted. Of course this is not allowed by the JSON specification.
-rw-r--r--app/controllers/configs_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/configs_controller.rb b/app/controllers/configs_controller.rb
index ee8658d..0b516e9 100644
--- a/app/controllers/configs_controller.rb
+++ b/app/controllers/configs_controller.rb
@@ -51,9 +51,9 @@ private
res_ev={};Ressource.all.each {|r| res_ev["/#{r.namespace}/#{r.ressource}"] = r.events}
config= \
{
- :participant_events => @participant.events?.to_s,
+ :participant_events => @participant.events?,
:resource_events => res_ev,
- :selfrouting => @participant.community_selfrouting.to_s
+ :selfrouting => @participant.community_selfrouting
}
respond_to do |format|
format.json { render :json => JSON.pretty_generate(config) + "\r\n" }