vinova/voteable_mongo — Issue #21: Voter and Voteable in one model.
Author: bartroza
Created: 2011-11-02 00:05:25+00:00
State: open

very helpful would be functionality also voting on other objects of the same model. It's possible to get around this issue? I found "Does it allow multiple votes?" but the issue was closed and the solution does not solve the main problem.

example apart from standard voting:
```ruby
class User
include Mongo::Voter
include Mongo::Voteable
has_many :ads
end

class Ad
include Mongo::Voteable
include Mongo::Voter
belongs_to :user
voteable User, :up => +1, :down => -1
end

class AdsController < ApplicationController
def create
@ad = current_user.ads.build(params[:ad])
if @ad.save
@ad.vote(current_user, :up)
end
end
end
```