mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Fix nav/com and navigation database template citations
- "Swapping a tray-mounted nav/com unit" cited Part 43 Appendix A (c)(32), which doesn't exist; the item is (c)(31). Its wording now names that paragraph's conditions (self-contained, panel-mounted, tray-mounted, manufacturer's instructions, operational check before use). - "Updating the navigation database" called itself preventive maintenance under (c)(31). 14 CFR 43.3(k) says such an update isn't maintenance: it's now an Other entry citing 43.3(k), with no certificate type. - Built-in templates now take their entry type from the YAML (it was always Maintenance). - A migration fixes copies already in the database where an admin hasn't changed the text; edited ones are left alone. - Test: every built-in template is valid and cites an existing Appendix A paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
acb8b87ca3
commit
6697e835c8
5 files changed
+77
-7
No files matched your search
@@ -22,7 +22,7 @@ class LogbookTemplate < ApplicationRecord
|
||||
existing = pluck(:name).to_set
|
||||
next_position = (maximum(:position) || 0) + 1
|
||||
added = defaults.reject { existing.include?(_1["name"]) }
|
||||
added.each_with_index { |d, i| create!(d.slice("name", "reference", "text", "log_type", "certificate_type").merge("position" => next_position + i)) }
|
||||
added.each_with_index { |d, i| create!(d.slice("name", "reference", "text", "entry_type", "log_type", "certificate_type").merge("position" => next_position + i)) }
|
||||
added.size
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user