Commit
eea6e7c4f0b1ad370e42c9762b65edf92bc1f891
Exists in
master
and in
22 other branches
angular_poc, api-article-archived, article-readonly, backup-7-jan-2016, captcha_serpro_plugin, content-manager-hostspot, export-comment-paragraph, fix_event_date_issue, login-captcha, master_rails3, new_video_plugin, pg_search_rank, production, refactor_with_role, refactor_with_role_scope, remove_profile_cat_icons, resend_confirmation_email, staging, staging_rails3, tasks_keep_filter_params, theme-brasil-digital-from-staging, travis
Added comments on action_tracker
| @@ -0,0 +1,7 @@ |
| @@ -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 |