#692: updated groups/profile_controller

This commit is contained in:
Vokhmin Alexey V 2012-10-16 20:38:49 +04:00
parent e5af275c3a
commit f0caf6a9f9
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ class Groups::ProfileController < Groups::BaseController
end
def create
@group = Group.new params[:group]
@group.owner = current_user
@group = current_user.own_groups.new params[:group]
if @group.save
flash[:notice] = t('flash.group.saved')
redirect_to group_path(@group)