aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 3c9ad214d..3b4775fc7 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,7 +1,7 @@
class UsersController < InheritedResources::Base
def create
- @user = current_organisation.users.create(params[:user])
+ @user = current_organisation.users.build(params[:user])
@user.invite!
respond_with @user, :location => organisation_user_path(@user)
end