Class: NewLead::LeadActivityReassigner

Inherits:
Object
  • Object
show all
Includes:
Service
Defined in:
app/services/new_lead/lead_activity_reassigner.rb

Overview

Retypes an open lead activity while preserving its identity, target date,
notes, and assignment history.

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callObject



11
12
13
# File 'app/services/new_lead/lead_activity_reassigner.rb', line 11

def call
  activity.with_lock { reassign_locked(activity.reload) }
end