lib/timber/contexts/system.rb in timber-1.1.2 vs lib/timber/contexts/system.rb in timber-1.1.3
- old
+ new
@@ -10,10 +10,10 @@
@pid = attributes[:pid] || raise(ArgumentError.new(":pid is required"))
@pid = @pid.to_s
end
def as_json(_options = {})
- {pid: pid}
+ {pid: Timber::Object.try(pid, :to_s)}
end
end
end
end
\ No newline at end of file