]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Touch notes when new comments are added
[rails.git] / app / models / note_comment.rb
index 39902911879abffbd0d455f91bcd2b524ac24f52..07d43cd741da065ada41e4705b458874f5ca3756 100644 (file)
@@ -1,5 +1,5 @@
 class NoteComment < ActiveRecord::Base
-  belongs_to :note, :foreign_key => :note_id
+  belongs_to :note, :foreign_key => :note_id, :touch => true
   belongs_to :author, :class_name => "User", :foreign_key => :author_id
 
   validates_presence_of :id, :on => :update