Refactor method name

This commit is contained in:
Hiroyuki Sato 2016-11-08 05:12:17 +09:00
parent 95a78fb53b
commit 5569573a24
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ class Projects::NetworkController < Projects::ApplicationController
before_action :require_non_empty_project
before_action :assign_ref_vars
before_action :authorize_download_code!
before_action :assign_extended_sha1
before_action :assign_commit
def show
@url = namespace_project_network_path(@project.namespace, @project, @ref, @options.merge(format: :json))
@ -24,7 +24,7 @@ class Projects::NetworkController < Projects::ApplicationController
end
end
def assign_extended_sha1
def assign_commit
return if params[:extended_sha1].blank?
@options[:extended_sha1] = params[:extended_sha1]