X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cbea796ef412840af9a3ec2fd26bf08657fc4cd3..e968ad038a4b08960283735fcd191b937dde6d44:/app/models/changeset_comment.rb diff --git a/app/models/changeset_comment.rb b/app/models/changeset_comment.rb index 529641c7e..75b1a055b 100644 --- a/app/models/changeset_comment.rb +++ b/app/models/changeset_comment.rb @@ -24,7 +24,7 @@ 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]