Commit 432a62d9 by Ibrahim Awwal

Fix rake db:init.

This is kind of a hack and I'm not sure why it's undefined in the Rake task
because it works when running the app, and #{field}_changed? is defined by
Mongoid as part of its dirty tracking implementation.
parent 72a26d07
...@@ -57,7 +57,7 @@ class CommentThread < Content ...@@ -57,7 +57,7 @@ class CommentThread < Content
validate :tag_names_unique validate :tag_names_unique
before_create :set_last_activity_at before_create :set_last_activity_at
before_update :set_last_activity_at, :unless => closed_changed? before_update :set_last_activity_at, :unless => lambda { closed_changed? }
before_destroy :destroy_subscriptions before_destroy :destroy_subscriptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment