From 231665020ecdca02e08394edafe11fdc638392aa Mon Sep 17 00:00:00 2001 From: kikito Date: Sat, 12 Sep 2015 14:04:50 +0200 Subject: [PATCH] Allows commenting Proposals in Comment validation --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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