Class: UsersController

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

Instance Method Summary collapse

Instance Method Details

#preferencesObject



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

def preferences
end

#updateObject



10
11
12
13
14
# File 'app/controllers/users_controller.rb', line 10

def update
  current_user.update_attributes!(user_params)

  render json: current_user.preferences
end