From: Tom Hughes Date: Sun, 3 Feb 2013 11:06:34 +0000 (+0000) Subject: Touch notes when new comments are added X-Git-Tag: live~5058^2~39 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/43f39c50a358bef5be0847888318a64f162c9faf Touch notes when new comments are added --- diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index 399029118..07d43cd74 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -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