From e2fffbff98a3c60d3efb8d98a3554bea28dca532 Mon Sep 17 00:00:00 2001 From: Ari Pollak Date: Thu, 4 Dec 2014 18:25:05 -0500 Subject: Inline to_global_id conversion --- activejob/lib/active_job/logging.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'activejob/lib') diff --git a/activejob/lib/active_job/logging.rb b/activejob/lib/active_job/logging.rb index 97d11aebfc..cd29e6908e 100644 --- a/activejob/lib/active_job/logging.rb +++ b/activejob/lib/active_job/logging.rb @@ -84,14 +84,10 @@ module ActiveJob event.payload[:adapter].name.demodulize.remove('Adapter') + "(#{event.payload[:job].queue_name})" end - def global_id_or_inspected(argument) - argument.try(:to_global_id).try(:to_s) || argument.inspect - end - def args_info(job) if job.arguments.any? ' with arguments: ' + - job.arguments.map { |arg| global_id_or_inspected(arg) }.join(', ') + job.arguments.map { |arg| arg.try(:to_global_id).try(:to_s) || arg.inspect }.join(', ') else '' end -- cgit v1.2.3