Issue #82 - Add owner to project
This commit is contained in:
parent
819818ad74
commit
9840102651
7 changed files with 15 additions and 3 deletions
|
@ -87,6 +87,7 @@ class ProjectsController < ApplicationController
|
|||
|
||||
def create
|
||||
@project = Project.new(params[:project])
|
||||
@project.owner = current_user
|
||||
|
||||
Project.transaction do
|
||||
@project.save!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue