Commit 0eef8876 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove unnecessary has_many relations from EE::Issue

parent 4ae25fdb
module EE
module Issue
extend ActiveSupport::Concern
prepended do
has_many :referenced_issue_links, class_name: 'IssueLink', foreign_key: :source_id
has_many :referred_by_issue_links, class_name: 'IssueLink', foreign_key: :target_id
has_many :referenced_issues, through: :referenced_issue_links, source: :target
has_many :referred_by_issues, through: :referred_by_issue_links, source: :source
end
# override
def check_for_spam?
author.support_bot? || super
......
......@@ -18,10 +18,6 @@ issues:
- metrics
- timelogs
- issue_assignees
- referenced_issue_links
- referred_by_issue_links
- referenced_issues
- referred_by_issues
events:
- author
- project
......
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