Improved error handling.

This commit is contained in:
Martin Edenhofer 2014-01-28 11:02:31 +01:00
parent c96bb1956f
commit 67020df9d5

View file

@ -69,7 +69,7 @@ return all activity entries of an user
private
def self.build_url( type, o_id = nil )
index = Setting.get('es_index') + "_#{Rails.env}"
index = Setting.get('es_index').to_s + "_#{Rails.env}"
url = Setting.get('es_url')
return if !url
if o_id