summaryrefslogtreecommitdiff
path: root/app/controllers/projects/blob_controller.rb
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-13 11:19:14 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-13 11:19:14 +0100
commitdd3addad481e7e0475cfecd16c8bcd3dc65e967d (patch)
treea7382b0dd412b50eba516b7fe945e65b6e6b7d32 /app/controllers/projects/blob_controller.rb
parent4352ff0d446337b8718e9164d7fdac08fcc53d6f (diff)
downloadgitlab-ce-dd3addad481e7e0475cfecd16c8bcd3dc65e967d.tar.gz
renames :file_name to :file_path
Diffstat (limited to 'app/controllers/projects/blob_controller.rb')
-rw-r--r--app/controllers/projects/blob_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index 0120ad8e058..eda3727a28d 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -38,9 +38,9 @@ class Projects::BlobController < Projects::ApplicationController
end
def update
- unless params[:file_name].nil? || params[:file_name].empty?
+ if params[:file_path].present?
@previous_path = @path
- @path = params[:file_name]
+ @path = params[:file_path]
@commit_params[:file_path] = @path
end