app/jobs/auth_trail/geocode_job.rb in authtrail-0.2.0 vs app/jobs/auth_trail/geocode_job.rb in authtrail-0.2.1
- old
+ new
@@ -1,6 +1,10 @@
module AuthTrail
class GeocodeJob < ActiveJob::Base
+ # default queue is used if queue_as returns nil
+ # Rails has a test for this
+ queue_as { AuthTrail.job_queue }
+
def perform(login_activity)
result =
begin
Geocoder.search(login_activity.ip).first
rescue => e