adds Budget::Investment to valid commentable types

This commit is contained in:
Juanjo Bazán
2017-01-10 13:30:30 +01:00
parent 205b988f49
commit f102f9f753

View File

@@ -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