Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2014-10-02 23:22:03 +0400
committerJason Robinson <mail@jasonrobinson.me>2014-10-04 02:01:19 +0400
commit66c2f7f869e222de474c5185fbd9dc10e9997ec4 (patch)
treecad268b0672159ed342391fd24aaced99c1d33bd /app
parent309e690a66bb6fa8a200990df7fb42e2887dad7b (diff)
Fix statistics_presenter_spec
Diffstat (limited to 'app')
-rw-r--r--app/presenters/statistics_presenter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/presenters/statistics_presenter.rb b/app/presenters/statistics_presenter.rb
index b264fc3af..a3bcb8b32 100644
--- a/app/presenters/statistics_presenter.rb
+++ b/app/presenters/statistics_presenter.rb
@@ -17,8 +17,8 @@ class StatisticsPresenter
if AppConfig.privacy.statistics.comment_counts?
result['local_comments'] = self.local_comments
end
- AppConfig.services.each do |service, options|
- result[service] = AppConfig["services.#{service}.enable"]
+ Configuration::KNOWN_SERVICES.each do |service, options|
+ result[service.to_s] = AppConfig["services.#{service}.enable"]
end
result
@@ -31,5 +31,5 @@ class StatisticsPresenter
def local_comments
Comment.joins(:author).where("owner_id IS NOT null").count
end
-
+
end