From 43f39c50a358bef5be0847888318a64f162c9faf Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 3 Feb 2013 11:06:34 +0000 Subject: [PATCH] Touch notes when new comments are added --- app/models/note_comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5