Merge branch 'master' into legislation-module-stable
This commit is contained in:
@@ -10,7 +10,7 @@ class Comment < ActiveRecord::Base
|
||||
|
||||
validates :body, presence: true
|
||||
validates :user, presence: true
|
||||
validates_inclusion_of :commentable_type, in: ["Debate", "Proposal", "Legislation::Question", "Legislation::Annotation"]
|
||||
validates_inclusion_of :commentable_type, in: ["Debate", "Proposal", "Budget::Investment", "Legislation::Question", "Legislation::Annotation"]
|
||||
|
||||
validate :validate_body_length
|
||||
|
||||
|
||||
Reference in New Issue
Block a user