summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 23:05:51 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 23:05:51 +0100
commit9567f239586f253002dea0ed654b7bd18a15e572 (patch)
treefbc9688a4531b88d6572455b29814a618e5fdc08 /app/controllers
parent45ab6dc23ef7d8d6ddf60ab355c2d1b3450f35c8 (diff)
Added the URLs for some GsParameters. #96
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/gemeinschaft_setups_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/gemeinschaft_setups_controller.rb b/app/controllers/gemeinschaft_setups_controller.rb
index 73a748c..81faf2a 100644
--- a/app/controllers/gemeinschaft_setups_controller.rb
+++ b/app/controllers/gemeinschaft_setups_controller.rb
@@ -41,6 +41,11 @@ class GemeinschaftSetupsController < ApplicationController
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)
+ # Set a couple of URLs in the GsParameter table
+ GsParameter.where(:name => 'phone_book_entry_image_url').first.update_attributes(:value => "http://#{@gemeinschaft_setup.sip_domain.host}/uploads/phone_book_entry/image")
+ GsParameter.where(:name => 'ringtone_url').first.update_attributes(:value => "http://#{@gemeinschaft_setup.sip_domain.host}")
+ GsParameter.where(:name => 'user_image_url').first.update_attributes(:value => "http://#{@gemeinschaft_setup.sip_domain.host}/uploads/user/image")
+
# Auto-Login:
session[:user_id] = user.id