X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c2f23fea6a7821a4ad4c97fd65744b138ec86267..b84799f481e67c7a5cf6964e228c7a617b1defc7:/app/models/changeset_comment.rb diff --git a/app/models/changeset_comment.rb b/app/models/changeset_comment.rb index 232785d95..75b1a055b 100644 --- a/app/models/changeset_comment.rb +++ b/app/models/changeset_comment.rb @@ -24,11 +24,11 @@ class ChangesetComment < ActiveRecord::Base belongs_to :author, :class_name => "User" validates :id, :uniqueness => true, :presence => { :on => :update }, - :numericality => { :on => :update, :integer_only => true } + :numericality => { :on => :update, :only_integer => true } validates :changeset, :presence => true, :associated => true validates :author, :presence => true, :associated => true validates :visible, :inclusion => [true, false] - validates :body, :invalid_chars => true + validates :body, :characters => true # Return the comment text def body