Class: Oauth2::UsersController

Inherits:
Oauth2Controller
  • Object
show all
Defined in:
app/controllers/oauth2/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
# File 'app/controllers/oauth2/users_controller.rb', line 5

def show
  attributes = user.try!(:oauth_attributes) || user.attributes.only(*%w[name email uuid])
  render :json => attributes
end