diff options
author | James Lopez <james@jameslopez.es> | 2018-02-09 08:59:03 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-02-23 14:02:39 +0100 |
commit | 4c8f8f4fe9248567e4b1a5ef5a6bc049513751a4 (patch) | |
tree | 3a7d4046409dec54f26c7eded0bd9f1f85e39b73 | |
parent | 5fc3ff98930f74a694d40cc3533138fb06964bf1 (diff) | |
download | gitlab-ce-4c8f8f4fe9248567e4b1a5ef5a6bc049513751a4.tar.gz |
fix spec
-rw-r--r-- | app/helpers/blob_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index 2822fa8144a..b54dd93cc08 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -12,8 +12,8 @@ module BlobHelper def edit_blob_path(project = @project, ref = @ref, path = @path, options = {}) project_edit_blob_path(project, - tree_join(ref, path), - options[:link_opts]) + tree_join(ref, path), + options[:link_opts]) end def edit_blob_link(project = @project, ref = @ref, path = @path, options = {}) @@ -25,7 +25,7 @@ module BlobHelper edit_button_tag(edit_text, common_classes) # This condition applies to anonymous or users who can edit directly elsif !current_user || (current_user && can_modify_blob?(blob, project, ref)) - edit_link_tag(edit_text, ide_edit_path(project, ref, path, options), common_classes) + edit_link_tag(edit_text, edit_blob_path(project, ref, path, options), common_classes) elsif current_user && can?(current_user, :fork_project, project) edit_blob_fork(common_classes, edit_blob_path(project, ref, path, options), project, edit_in_new_fork_notice) end |