Commit eea6e7c4f0b1ad370e42c9762b65edf92bc1f891

Authored by Daniela Feitosa
1 parent 23d32ba1

Added comments on action_tracker

vendor/plugins/action_tracker_has_comments/init.rb 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +# monkey patch to add comments on action_tracker
  2 +
  3 +ActionTracker::Record.module_eval do
  4 +
  5 + has_many :comments, :class_name => 'Comment', :foreign_key => 'source_id', :dependent => :destroy, :order => 'created_at asc'
  6 +
  7 +end
... ...