diff --git a/app/models/comment.rb b/app/models/comment.rb index 0bfb6a320..d4b1cc8e7 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", "Proposal"] + validates_inclusion_of :commentable_type, in: ["Debate", "Proposal", "Budget::Investment"] validate :validate_body_length