mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 08:47:11 -05:00
13 lines
205 B
Ruby
13 lines
205 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Trips::CreatePathJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(trip_id)
|
|
trip = Trip.find(trip_id)
|
|
|
|
trip.calculate_trip_data
|
|
|
|
trip.save!
|
|
end
|
|
end
|