Commit 302d2588 authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

special case inc_namespace_with_associations for MergeRequest

since it needs to reference `target_project`.
parent 4fd89ca3
......@@ -125,6 +125,8 @@ class MergeRequest < ActiveRecord::Base
scope :unassigned, -> { where("assignee_id IS NULL") }
scope :assigned_to, ->(u) { where(assignee_id: u.id)}
scope :inc_namespace_with_associations, -> { includes(target_project: [:namespace, :route]) }
participant :assignee
after_save :keep_around_commit
......
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