Class: Users::ProfilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/users/profiles_controller.rb

Instance Attribute Summary

Attributes included from Authentication

#current_user

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
# File 'app/controllers/users/profiles_controller.rb', line 3

def show
  ok(user: current_user)
end

#updateObject



7
8
9
10
11
# File 'app/controllers/users/profiles_controller.rb', line 7

def update
  current_user.update!(update_params)

  ok
end