Class: UserSettingsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- UserSettingsController
- Includes:
- UserSettings::UserSettingsConcern
- Defined in:
- app/controllers/user_settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
8 9 10 |
# File 'app/controllers/user_settings_controller.rb', line 8 def create render json: create_presenter(:create).as_json end |
#create_once ⇒ Object
12 13 14 |
# File 'app/controllers/user_settings_controller.rb', line 12 def create_once render json: create_presenter(:create, true).as_json end |
#destroy ⇒ Object
16 17 18 |
# File 'app/controllers/user_settings_controller.rb', line 16 def destroy render json: create_presenter(:destroy).as_json end |
#show ⇒ Object
4 5 6 |
# File 'app/controllers/user_settings_controller.rb', line 4 def show render json: create_presenter(:find).as_json end |