diff --git a/vendor/plugins/action_tracker_has_comments/init.rb b/vendor/plugins/action_tracker_has_comments/init.rb new file mode 100644 index 0000000..c716e69 --- /dev/null +++ b/vendor/plugins/action_tracker_has_comments/init.rb @@ -0,0 +1,7 @@ +# monkey patch to add comments on action_tracker + +ActionTracker::Record.module_eval do + + has_many :comments, :class_name => 'Comment', :foreign_key => 'source_id', :dependent => :destroy, :order => 'created_at asc' + +end -- libgit2 0.21.2