Class: Audiences::Scim::UpsertGroupsObserver

Inherits:
ObserverBase
  • Object
show all
Defined in:
lib/audiences/scim/upsert_groups_observer.rb

Instance Method Summary collapse

Instance Method Details

#processObject



11
12
13
14
15
16
17
18
# File 'lib/audiences/scim/upsert_groups_observer.rb', line 11

def process
  Audiences.logger.info "#{upsert_action} group #{new_display_name} (#{new_external_id})"

  group.update! external_id: new_external_id, display_name: new_display_name, active: new_active
rescue => e
  Audiences.logger.error e
  raise
end