Extracted voting logic to voteable.rb