Improve CreateContext call. Fixed test
This commit is contained in:
parent
232d61d598
commit
6f05ea4f6e
5 changed files with 47 additions and 35 deletions
|
@ -19,7 +19,7 @@ class ProjectsController < ProjectResourceController
|
|||
end
|
||||
|
||||
def create
|
||||
@project = Projects::CreateContext.new(nil, current_user, params).execute
|
||||
@project = Projects::CreateContext.new(current_user, params).execute
|
||||
|
||||
respond_to do |format|
|
||||
flash[:notice] = 'Project was successfully created.' if @project.saved?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue