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