diff options
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/lib/active_job/logging.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activejob/lib/active_job/logging.rb b/activejob/lib/active_job/logging.rb index 010c26dda4..97d11aebfc 100644 --- a/activejob/lib/active_job/logging.rb +++ b/activejob/lib/active_job/logging.rb @@ -85,11 +85,7 @@ module ActiveJob end def global_id_or_inspected(argument) - if argument.is_a?(GlobalID::Identification) - argument.to_global_id.to_s - else - argument.inspect - end + argument.try(:to_global_id).try(:to_s) || argument.inspect end def args_info(job) |