diff options
author | jessib <jessib@riseup.net> | 2013-09-03 10:48:13 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-09-03 10:48:13 -0700 |
commit | 07d0f6fe1d80cb730bd12a03a107c18d18779acc (patch) | |
tree | 8583a31661ba5032a9cd6ffd6b74273a6c862ab0 /users/app/controllers/v1 | |
parent | f3e17149116f6a3aeb87f8a6d0ecf29e8e33ad93 (diff) | |
parent | 29b306a4d49d395e5753e2e85f8fa1f25d18410c (diff) |
Merge pull request #73 from azul/bugfix/3623-teardown-test-data-properly
Bugfix/3623 teardown test data properly
Diffstat (limited to 'users/app/controllers/v1')
-rw-r--r-- | users/app/controllers/v1/users_controller.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/users/app/controllers/v1/users_controller.rb b/users/app/controllers/v1/users_controller.rb index 4f82572..01a1a2f 100644 --- a/users/app/controllers/v1/users_controller.rb +++ b/users/app/controllers/v1/users_controller.rb @@ -19,23 +19,20 @@ module V1 end def create - @user = signup_service.register(params[:user]) + @user = Account.create(params[:user]) respond_with @user # return ID instead? end def update - account_settings.update params[:user] + account.update params[:user] respond_with @user end protected - def account_settings - AccountSettings.new(@user) + def account + Account.new(@user) end - def signup_service - SignupService.new - end end end |