app/jobs/auth_trail/geocode_job.rb in authtrail-0.1.2 vs app/jobs/auth_trail/geocode_job.rb in authtrail-0.1.3
- old
+ new
@@ -1,6 +1,6 @@
module AuthTrail
- class GeocodeJob < ApplicationJob
+ class GeocodeJob < Rails::VERSION::MAJOR >= 5 ? ApplicationJob : ActiveJob::Base
def perform(login_activity)
result =
begin
Geocoder.search(login_activity.ip).first
rescue => e