Class: Eventifier::API::PutPreferences

Inherits:
Base
  • Object
show all
Defined in:
lib/eventifier/api/put_preferences.rb

Instance Method Summary collapse

Methods inherited from Base

#skip?

Instance Method Details

#callObject



2
3
4
5
6
7
8
# File 'lib/eventifier/api/put_preferences.rb', line 2

def call
  Eventifier::Preferences.new(user).update request.params['preferences'] || {}

  response.body = {'status' => 'OK'}

  super
end