diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-20 09:49:46 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-20 09:49:46 +0100 |
commit | f7b3642b0ee7027091fafc1bdf94ac1a309fefa3 (patch) | |
tree | 2b70c5411370a6c24eca16b63b4d655e15b6a56f /app/controllers/gemeinschaft_setups_controller.rb | |
parent | 4666adb72cd6a0316f0c1c338bc26449cebdd125 (diff) |
Create a GsNode entry.
Diffstat (limited to 'app/controllers/gemeinschaft_setups_controller.rb')
-rw-r--r-- | app/controllers/gemeinschaft_setups_controller.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/gemeinschaft_setups_controller.rb b/app/controllers/gemeinschaft_setups_controller.rb index cafb8a3..e871862 100644 --- a/app/controllers/gemeinschaft_setups_controller.rb +++ b/app/controllers/gemeinschaft_setups_controller.rb @@ -26,6 +26,11 @@ class GemeinschaftSetupsController < ApplicationController :language_id => @gemeinschaft_setup.language_id, :description => t('gemeinschaft_setups.initial_setup.super_tenant_description'), ) + + # GsNode + GsNode.create(:name => 'Homebase', :ip_address => @gemeinschaft_setup.sip_domain.host, + :push_updates_to => false, :accepts_updates_from => false, + :site => 'Homebase', :element_name => 'Homebase') # Admin user = @gemeinschaft_setup.user @@ -35,7 +40,7 @@ class GemeinschaftSetupsController < ApplicationController # Create the Super-Tenant's group: super_tenant_super_admin_group = super_tenant.user_groups.create(:name => t('gemeinschaft_setups.initial_setup.super_admin_group_name')) super_tenant_super_admin_group.user_group_memberships.create(:user_id => user.id) - + # Auto-Login: session[:user_id] = user.id |