Skip to content

Commit

Permalink
Touch notes when new comments are added
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Feb 3, 2013
1 parent ff73d12 commit 43f39c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 43f39c5

Please sign in to comment.