Change argument name assuming its always a Project

This commit is contained in:
Oswaldo Ferreira 2017-01-11 10:45:49 -02:00
parent 441501e4bf
commit 660a755cad

View file

@ -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