Best method to get current user vote type for hundreds posts with Rails?

Here is question on
stackoverflowhttps://stackoverflow.com/questions/20939277/best-method-to-get-current-user-vote-type-for-hundreds-posts-with-rails/,
does anyone can help with?