Topic: validate_uniqueness_of + act_as_voteable
I'm have trouble implementing a uniqueness check w/ act_as_voteable plugin
I tried adding the line to the votes.rb in the plugin directory but nothing happens
How would I add a model level validation to the act_as_voteable plugin?
class Vote < ActiveRecord::Base
validates_uniqueness_of :voteable_id, :scope => :user_id
:conditions => ["user_id = ?", user.id],
:order => "created_at DESC"