app/jobs/auth_trail/geocode_job.rb in authtrail-0.4.0 vs app/jobs/auth_trail/geocode_job.rb in authtrail-0.4.1
- old
+ new
@@ -7,11 +7,10 @@
def perform(login_activity)
result =
begin
Geocoder.search(login_activity.ip).first
rescue NameError
- # geocoder gem not installed
- raise
+ raise "Add the geocoder gem to your Gemfile to use geocoding"
rescue => e
Rails.logger.info "Geocode failed: #{e.message}"
nil
end