Class: Eventifier::PreferencesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Eventifier::PreferencesController
- Defined in:
- app/controllers/eventifier/preferences_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
2 3 4 |
# File 'app/controllers/eventifier/preferences_controller.rb', line 2 def show render :json => preferences.to_hashes end |
#update ⇒ Object
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 |