mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Flights can be corrected after they're saved
- Edit on a flight: owners can correct any flight; a pilot, the flights they logged (the same rule as its engine data). - Date, airports, route, notes, oil and fuel (its oil and fuel records follow) and the attached files can always be changed. - The meter readings only on the latest flight, while its tach in is still the aircraft's tach: the aircraft and installed components move by the difference, and with both readings the duration is worked out from them. On earlier flights they're locked (later flights started from them), pointing to Update Hours; the server ignores them too. - Each correction is in the activity log with what changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
34879e7310
commit
d2cd60c6a7
11 files changed
+274
-38
No files matched your search
+1
-1
@@ -57,7 +57,7 @@ Rails.application.routes.draw do
|
||||
resources :notes, except: :show do
|
||||
post :preview, on: :collection
|
||||
end
|
||||
resources :flight_logs, only: %i[index new create show destroy] do
|
||||
resources :flight_logs, only: %i[index new create show edit update destroy] do
|
||||
member do
|
||||
get :engine_data, action: :engine_data_series
|
||||
patch :engine_data, action: :attach_engine_data
|
||||
|
||||
Reference in new issue
Block a user