关注列表返回优化

This commit is contained in:
guange 2014-12-15 20:17:35 +08:00
parent df18eac875
commit 4df9544770
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,6 @@ module Mobile
us = UsersService.new
user = us.register params.merge(:password_confirmation => params[:password],
:should_confirmation_password => true)
binding.pry
raise "register failed #{user.errors.full_messages}" if user.new_record?
present :data, user, with: Mobile::Entities::User

View File

@ -12,7 +12,8 @@ module Mobile
authenticate!
us = UsersService.new
ws = us.user_watcher(id: current_user.id)
{status: 0, data: ws }
present :data, ws, with: Mobile::Entities::User
present :status, 0
end