aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2013-08-13 23:18:50 +0200
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2014-05-07 02:58:28 +0200
commitce1773461b71a40afb406f4148b32aad11b52a57 (patch)
tree88f779715658a74c2ac8bb8972e7879c5b10e1b3 /config
parent561be6974dc030309a2165726c5b4ff3f0afba2d (diff)
downloadecs2-ce1773461b71a40afb406f4148b32aad11b52a57.tar.gz
ecs2-ce1773461b71a40afb406f4148b32aad11b52a57.zip
Turn on/off events by participants.
Up to now events could be turned on and off by resources. To turn on events you still have to do it by resource but have additionally the possibility to control it by participant. Only if both switches are on, the participant will get events generated through the resource.
Diffstat (limited to 'config')
-rw-r--r--config/ecs_config.yml1
-rw-r--r--config/initializers/ecs_00.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/ecs_config.yml b/config/ecs_config.yml
index 2916b66..b3af8fe 100644
--- a/config/ecs_config.yml
+++ b/config/ecs_config.yml
@@ -1,3 +1,4 @@
participants:
allow_anonymous: false
+ allow_events: true # for database migration
diff --git a/config/initializers/ecs_00.rb b/config/initializers/ecs_00.rb
index baca196..6aa5db3 100644
--- a/config/initializers/ecs_00.rb
+++ b/config/initializers/ecs_00.rb
@@ -36,3 +36,4 @@ rescue Exception
end
ECS_CONFIG["participants"]["allow_anonymous"] = false unless defined? ECS_CONFIG["participants"]["allow_anonymous"]
+ECS_CONFIG["participants"]["allow_events"] = true unless defined? ECS_CONFIG["participants"]["allow_events"]