diff options
author | Valera Sizov <vsv2711@gmail.com> | 2011-10-09 15:05:31 +0400 |
---|---|---|
committer | Valera Sizov <vsv2711@gmail.com> | 2011-10-09 15:05:31 +0400 |
commit | 0cc6c7a33b132ca256936e30121e0284b99f1449 (patch) | |
tree | 6be90258006411d395b8bf5a7bad3817fa9dd9f7 /app/controllers | |
parent | 9aeb9ec59d4a2e5c05929ab465ed4a3eab148c0a (diff) |
Issue #82 - Add owner to project
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 06f97f57c51..3307ac23d9b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -87,6 +87,7 @@ class ProjectsController < ApplicationController def create @project = Project.new(params[:project]) + @project.owner = current_user Project.transaction do @project.save! |