lib/rocket_job/active_worker.rb in rocketjob-3.0.2 vs lib/rocket_job/active_worker.rb in rocketjob-3.0.3
- old
+ new
@@ -48,10 +48,10 @@
Time.now - (started_at || Time.now)
end
# Returns [String] the name of the server running this worker
def server_name
- if match = name.match(/(.*:.*):.*/)
+ if match = name.to_s.match(/(.*:.*):.*/)
match[1]
else
name
end
end