app/models/poll.rb in community_engine-2.0.0.beta3 vs app/models/poll.rb in community_engine-2.0.0

- old
+ new

@@ -2,9 +2,10 @@ has_many :choices, :dependent => :destroy validates_presence_of :question validates_presence_of :post has_many :votes, :dependent => :destroy belongs_to :post + attr_accessible :question def voted?(user) !self.votes.find_by_user_id(user.id).nil? end