mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
13 lines
213 B
Ruby
13 lines
213 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Trips::CreatePathJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(trip_id)
|
|
trip = Trip.find(trip_id)
|
|
|
|
trip.calculate_path_and_distance
|
|
|
|
trip.save!
|
|
end
|
|
end
|