app/models/poll.rb in community_engine-2.3.1 vs app/models/poll.rb in community_engine-2.3.2

- old
+ new

@@ -2,10 +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 + attr_accessible :question, :post_id, :post def voted?(user) !self.votes.find_by_user_id(user.id).nil? end