You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
335 B
13 lines
335 B
6 years ago
|
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
|