app/controllers/organizations_controller.rb in artfully_ose-1.2.0.pre.27 vs app/controllers/organizations_controller.rb in artfully_ose-1.2.0
- old
+ new
@@ -38,9 +38,10 @@
@organization = Organization.new(params[:organization])
if @organization.save
@organization.users << current_user
+ @organization.make_owner(current_user)
redirect_to organizations_url, :notice => "#{@organization.name} has been created"
else
render :new
end
end