mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
Avionics logbook type
Aircraft with a separate avionics logbook can file radio, transponder and autopilot work under it: AVIONICS joins Aircraft, Engine, Propeller and Other everywhere a logbook is chosen or filtered (entry form, logbook filter, squawk resolution, templates, imports). - Logbook transcription knows it (schema enum and prompt), so scanned avionics pages aren't filed as Aircraft. - The API's ?log= filter and drafts API accept it; docs updated. - No migration: log_type is a string column. Existing entries unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a5ca534fd1
commit
acb8b87ca3
9 files changed
+39
-8
No files matched your search
@@ -36,7 +36,7 @@ module Api
|
||||
render json: { data: Compliance.ad_rows(aircraft).map { ApiPresenter.ad(_1) } }
|
||||
end
|
||||
|
||||
# Logbook entries, oldest first (paged); ?log=AC|ENG|PROP|OTHER, ?signed=true|false.
|
||||
# Logbook entries, oldest first (paged); ?log=AC|ENG|PROP|AVIONICS|OTHER, ?signed=true|false.
|
||||
def logbook_entries
|
||||
aircraft = find_aircraft(params[:id])
|
||||
scope = aircraft.logbook_entries.includes(:signature)
|
||||
|
||||
Reference in new issue
Block a user