From 3ca376a4070428c862c9db48cba25c3d307955ea Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 18 Sep 2013 10:26:23 +0200 Subject: user.account shortcut to Account.new(user) --- users/app/controllers/v1/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/app/controllers/v1') diff --git a/users/app/controllers/v1/users_controller.rb b/users/app/controllers/v1/users_controller.rb index 01a1a2f..03a5a62 100644 --- a/users/app/controllers/v1/users_controller.rb +++ b/users/app/controllers/v1/users_controller.rb @@ -31,7 +31,7 @@ module V1 protected def account - Account.new(@user) + @user.account end end -- cgit v1.2.3