Issue #82 - Add owner to project

This commit is contained in:
Valera Sizov 2011-10-09 04:05:31 -07:00
parent 819818ad74
commit 9840102651
7 changed files with 15 additions and 3 deletions

View file

@ -87,6 +87,7 @@ class ProjectsController < ApplicationController
def create
@project = Project.new(params[:project])
@project.owner = current_user
Project.transaction do
@project.save!