diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2012-06-25 17:20:35 +0200 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2012-06-25 17:23:55 +0200 |
commit | 81805c6da82c61c9665d8ca786f76278972f7f40 (patch) | |
tree | e8f725194b23908741dc139f3759d565750aff57 /config | |
parent | 93570e1c59f003fc814c7f0f2252289ff9baed38 (diff) | |
download | ecs2-81805c6da82c61c9665d8ca786f76278972f7f40.tar.gz ecs2-81805c6da82c61c9665d8ca786f76278972f7f40.zip |
Undo ECS initialization modifications.
Initialize code don't have access to model objects.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/ecs_00.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/config/initializers/ecs_00.rb b/config/initializers/ecs_00.rb index 944db14..baca196 100644 --- a/config/initializers/ecs_00.rb +++ b/config/initializers/ecs_00.rb @@ -36,35 +36,3 @@ rescue Exception end ECS_CONFIG["participants"]["allow_anonymous"] = false unless defined? ECS_CONFIG["participants"]["allow_anonymous"] - -# Initialize database objects -Organization.create \ - :name => "not available", - :description => "For anonymous participants.", - :abrev => "n/a" \ - if Organization.find_by_name("not available").nil? -Organization.create \ - :name => "system", - :description => "Internal ECS community.", - :abrev => "sys" \ - if Organization.find_by_name("system").nil? -Participant.create \ - :name => "ecs", - :description => "ECS system participant", - :dns => 'n/a', - :community_selfrouting => false, - :organization_id => Organization.find_by_name("system").id \ - if Participant.find_by_name("ecs").nil? -Community.create \ - :name => "public", - :description => "For anonymous participants." \ - if Community.find_by_name("public").nil? -%w(created destroyed updated notlinked).each do |evt| - EvType.create :name => evt if EvType.find_by_name(evt).nil? -end -Ressource.create \ - :namespace => 'sys', - :ressource => 'auths', - :postroute => true, - :events => false \ - if Ressource.find_by_namespace_and_ressource("sys","auths").nil? |