diff --git a/app/models/comment.rb b/app/models/comment.rb index ae2734e23..227448da2 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -10,7 +10,7 @@ class Comment < ActiveRecord::Base validates :body, presence: true validates :user, presence: true - validates_inclusion_of :commentable_type, in: ["Debate"] + validates_inclusion_of :commentable_type, in: ["Debate", "Proposal"] validate :validate_body_length