app/jobs/release_rental_amount_to_owner_job.rb
# This before hook should be included in all Jobs to make sure that the service_name is
# correct as it's stored in the thread and the same thread handles many different communities
# if the job doesn't have host parameter, should call the method with nil, to set the default service_name
This before hook should be included in all Jobs to make sure that the service_name is
correct as it's stored in the thread and the same thread handles many different communities
if the job doesn't have host parameter, should call the method with nil, to set the default service_name
This before hook should be included in all Jobs to make sure that the service_name is correct as it ' s stored in the thread and the same thread handles many different communities if the job doesn ' t have host parameter should call the method with nil to set the default service_name
def before(job)
    transaction = Transaction.find(conversation_id)
    ApplicationHelper.store_community_service_name_to_thread_from_community_id(transaction.community.id)
  end
def before ( job ) transaction = Transaction . find ( conversation_id ) ApplicationHelper . store_community_service_name_to_thread_from_community_id ( transaction . community . id ) end
This before hook should be included in all Jobs to make sure that the service_name is
correct as it's stored in the thread and the same thread handles many different communities
if the job doesn't have host parameter, should call the method with nil, to set the default service_name
This before hook should be included in all Jobs to make sure that the service_name is correct as it ' s stored in the thread and the same thread handles many different communities if the job doesn ' t have host parameter should call the method with nil to set the default service_name
# Set the correct service name to thread for I18n to pick it
job