13 lines
		
	
	
		
			335 B
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			335 B
		
	
	
	
		
			Ruby
		
	
	
	
class BlobController < ApplicationController
 | 
						|
  def new
 | 
						|
    commit unless @repository.empty?
 | 
						|
  end
 | 
						|
 | 
						|
  def create
 | 
						|
    create_commit(Files::CreateService, success_path: after_create_path,
 | 
						|
                  failure_view: :new,
 | 
						|
                  failure_path: namespace_project_new_blob_path(@project.namespace, @project, @ref))
 | 
						|
  end
 | 
						|
 | 
						|
end
 |