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

Remove unnecessary has_many relations from EE::Issue

parent 4ae25fdb
module EE module EE
module Issue 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 # override
def check_for_spam? def check_for_spam?
author.support_bot? || super author.support_bot? || super
......
...@@ -18,10 +18,6 @@ issues: ...@@ -18,10 +18,6 @@ issues:
- metrics - metrics
- timelogs - timelogs
- issue_assignees - issue_assignees
- referenced_issue_links
- referred_by_issue_links
- referenced_issues
- referred_by_issues
events: events:
- author - author
- project - 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