app/controllers/decidim/votings/votings_controller.rb in decidim-elections-0.27.0 vs app/controllers/decidim/votings/votings_controller.rb in decidim-elections-0.27.1
- old
+ new
@@ -131,11 +131,11 @@
def published_votings
@published_votings ||= Voting.where(organization: current_organization).published
end
def paginated_votings
- @paginated_votings ||= paginate(search.result.published)
- @paginated_votings = reorder(@paginated_votings)
+ @paginated_votings ||= reorder(search.result.published)
+ @paginated_votings = paginate(@paginated_votings)
end
def promoted_votings
@promoted_votings ||= OrganizationPromotedVotings.new(current_organization)
end