Fixed #638, forcing trailing slash on pod url

This commit is contained in:
Hexagon 2010-11-29 22:55:43 +01:00
parent 760fed7016
commit 7bb32de899

View file

@ -23,4 +23,7 @@ end
APP_CONFIG[:terse_pod_url] = APP_CONFIG[:pod_url].gsub(/(https?:|www\.)\/\//, '')
APP_CONFIG[:terse_pod_url].chop! if APP_CONFIG[:terse_pod_url][-1, 1] == '/'
APP_CONFIG[:pod_url].chop! if APP_CONFIG[:pod_url][-1, 1] == '/'
APP_CONFIG[:pod_url] = APP_CONFIG[:pod_url] + '/'
puts "WARNING: Please modify your app_config.yml to have a proper pod_url!" if APP_CONFIG[:terse_pod_url] == "example.org" && Rails.env != "test"