Use shorthand as in TreeController#edit
This commit is contained in:
parent
3304262c3d
commit
f120e5a89a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module Gitlab
|
|||
protected
|
||||
|
||||
def can_edit?(path, last_commit)
|
||||
current_last_commit = @project.commits(ref, path, 1).first.sha
|
||||
current_last_commit = @project.last_commit_for(ref, path).sha
|
||||
last_commit == current_last_commit
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue