Fix available services not correctly displayed

This commit is contained in:
Augier 2015-01-26 19:48:36 +01:00
parent 928080176a
commit 4ff5483025

View file

@ -12,7 +12,7 @@ module StatisticsHelper
end
def service_status service, available_services
if available_services.include? service
if available_services.include? service.to_s
I18n.t('statistics.enabled')
else
I18n.t('statistics.disabled')
@ -20,7 +20,7 @@ module StatisticsHelper
end
def service_class service, available_services
if available_services.include? service
if available_services.include? service.to_s
"serv-enabled"
else
"serv-disabled"