Permalink
Browse files

Touch notes when new comments are added

  • Loading branch information...
tomhughes committed Feb 3, 2013
1 parent ff73d12 commit 43f39c50a358bef5be0847888318a64f162c9faf
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 43f39c5

Please sign in to comment.