Commit 88dd46f068137449a40f8125bd3fe1ed08c59cdc

Authored by Victor Costa
2 parents 21adb295 30c569f6

Merge branch 'api' into production

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/api/v1/articles.rb
@@ -32,7 +32,7 @@ module Noosfero @@ -32,7 +32,7 @@ module Noosfero
32 desc "Returns the total followers for the article" 32 desc "Returns the total followers for the article"
33 get ':id/followers' do 33 get ':id/followers' do
34 article = find_article(environment.articles, params[:id]) 34 article = find_article(environment.articles, params[:id])
35 - total = article.person_followers.size 35 + total = article.person_followers.count
36 {:total_followers => total} 36 {:total_followers => total}
37 end 37 end
38 38