Skip to content
Snippets Groups Projects
Commit 660a755c authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Change argument name assuming its always a Project

parent 441501e4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment