Class: UserSettingsController

Inherits:
ApplicationController
  • Object
show all
Includes:
UserSettings::UserSettingsConcern
Defined in:
app/controllers/user_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
# File 'app/controllers/user_settings_controller.rb', line 8

def create
  render json: create_presenter(:create).as_json
end

#create_onceObject



12
13
14
# File 'app/controllers/user_settings_controller.rb', line 12

def create_once
  render json: create_presenter(:create, true).as_json
end

#destroyObject



16
17
18
# File 'app/controllers/user_settings_controller.rb', line 16

def destroy
  render json: create_presenter(:destroy).as_json
end

#showObject



4
5
6
# File 'app/controllers/user_settings_controller.rb', line 4

def show
  render json: create_presenter(:find).as_json
end