]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/issue_comment.rb
Merge remote-tracking branch 'upstream/pull/3264'
[rails.git] / app / models / issue_comment.rb
index 2fe96f4728857271b031dc4579797b630196aacf..69aa8bde931b398ff18e134412ba3886a259849f 100644 (file)
 #  issue_comments_user_id_fkey   (user_id => users.id)
 #
 
-class IssueComment < ActiveRecord::Base
+class IssueComment < ApplicationRecord
   belongs_to :issue
   belongs_to :user
 
-  validates :body, :presence => true, :invalid_chars => true
+  validates :body, :presence => true, :characters => true
   validates :user, :presence => true
   validates :issue, :presence => true
 end