Skip to content

Commit

Permalink
Merge pull request #5595 from AugierLe42e/statistics-page-fix
Browse files Browse the repository at this point in the history
Fix available services not correctly displayed
  • Loading branch information
jhass committed Jan 26, 2015
2 parents 9280801 + 4ff5483 commit aaadf29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/statistics_helper.rb
Expand Up @@ -12,15 +12,15 @@ def registrations_status statistics
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')
end
end

def service_class service, available_services
if available_services.include? service
if available_services.include? service.to_s
"serv-enabled"
else
"serv-disabled"
Expand Down

0 comments on commit aaadf29

Please sign in to comment.