Commit c7c0392a authored by tiagonbotelho's avatar tiagonbotelho

test for nil params :file_name

parent 3161d5d2
...@@ -38,7 +38,7 @@ class Projects::BlobController < Projects::ApplicationController ...@@ -38,7 +38,7 @@ class Projects::BlobController < Projects::ApplicationController
end end
def update def update
unless params[:file_name].empty? unless params[:file_name].nil? || params[:file_name].empty?
@previous_path = @path @previous_path = @path
@path = params[:file_name] @path = params[:file_name]
@commit_params[:file_path] = @path @commit_params[:file_path] = @path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment