Commit
eea6e7c4f0b1ad370e42c9762b65edf92bc1f891
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
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 |