Class: Eventifier::PreferencesController

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

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
# File 'app/controllers/eventifier/preferences_controller.rb', line 2

def show
  render :json => preferences.to_hashes
end

#updateObject



6
7
8
9
10
# File 'app/controllers/eventifier/preferences_controller.rb', line 6

def update
  preferences.update params[:preferences] || {}

  render :json => {'status' => 'OK'}
end