Change argument name assuming its always a Project
This commit is contained in:
parent
441501e4bf
commit
660a755cad
1 changed files with 2 additions and 2 deletions
|
@ -179,10 +179,10 @@ class MergeRequest < ActiveRecord::Base
|
|||
work_in_progress?(title) ? title : "WIP: #{title}"
|
||||
end
|
||||
|
||||
def to_reference(from_project = nil, full: false)
|
||||
def to_reference(from = nil, full: false)
|
||||
reference = "#{self.class.reference_prefix}#{iid}"
|
||||
|
||||
"#{project.to_reference(from_project, full: full)}#{reference}"
|
||||
"#{project.to_reference(from, full: full)}#{reference}"
|
||||
end
|
||||
|
||||
def first_commit
|
||||
|
|
Loading…
Reference in a new issue