Commit dd3addad authored by tiagonbotelho's avatar tiagonbotelho

renames :file_name to :file_path

parent 4352ff0d
......@@ -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
......
......@@ -5,8 +5,8 @@
= ref
%span.editor-file-name
- if current_action?(:edit) || current_action?(:update)
= text_field_tag 'file_name', (params[:file_name] || @path),
class: 'form-control new-file-name'
= text_field_tag 'file_path', (params[:file_path] || @path),
class: 'form-control new-file-path'
- if current_action?(:new) || current_action?(:create)
%span.editor-file-name
......
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