Commit a7a819407267c7a653894ea4137b0976695c2806

Authored by Leandro Santos
1 parent 787a174a

put the voted by me collect only articles

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
lib/noosfero/api/v1/articles.rb
@@ -134,8 +134,7 @@ module Noosfero @@ -134,8 +134,7 @@ module Noosfero
134 134
135 #FIXME refactor this method 135 #FIXME refactor this method
136 get 'voted_by_me' do 136 get 'voted_by_me' do
137 - present_articles_paginated(current_person.votes.collect(&:voteable))  
138 -# present_articles(current_person, 'following_articles') 137 + present_articles_paginated(current_person.votes.where(:voteable_type => 'Article').collect(&:voteable))
139 end 138 end
140 139
141 desc 'Perform a vote on a article by id' do 140 desc 'Perform a vote on a article by id' do