X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/33c0f15990b215af60881f2ce6750e10dcc6284a..3ecf431f7e5346dbfdca192684e59de9f8e3335a:/app/models/note.rb diff --git a/app/models/note.rb b/app/models/note.rb index 0512639e1..a2937074c 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -4,7 +4,7 @@ class Note < ActiveRecord::Base has_many :comments, :class_name => "NoteComment", :foreign_key => :note_id, :order => :created_at, - :conditions => "visible = true AND body IS NOT NULL" + :conditions => { :visible => true } validates_presence_of :id, :on => :update validates_uniqueness_of :id