Guest User

Untitled

a guest
Jul 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. 12 def process_uploaded_trip(args)
  2. 13 xp = TripXmlProcessor.new
  3. 14 klass, id = xp.start_processing(args)
  4. 15
  5. 16 if klass.nil?
  6. 17 #something bum happened while processing, handle it
  7. 18 else
  8. 19 Nanite.push('/routes_trips/geocode', [asset.class.to_s, id])
  9. 20 Nanite.push('/routes_trips/generate_static_maps', [asset.class.to_s, asset.id] )
  10. 21 end
  11. 22 ensure
  12. 23 ActiveRecord::Base.clear_active_connections!
  13. 24 end
Add Comment
Please, Sign In to add comment