]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Fix numericality validation to use correct integer only constraint
[rails.git] / app / models / note_comment.rb
index 388f890a67c4fb5ea0939be59cef429475e2ca0a..448703ffa5f8d38471a7ecc2767f4ca41771af7b 100644 (file)
@@ -28,7 +28,7 @@ class NoteComment < ActiveRecord::Base
   belongs_to :author, :class_name => "User", :foreign_key => :author_id
 
   validates :id, :uniqueness => true, :presence => { :on => :update },
-                 :numericality => { :on => :update, :integer_only => true }
+                 :numericality => { :on => :update, :only_integer => true }
   validates :note, :presence => true, :associated => true
   validates :visible, :inclusion => [true, false]
   validates :author, :associated => true