mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
- Admin → Recordkeeping Procedures: generated procedures document (2.2.11 / 3.2.8) from the system setup plus owner-entered details; adopted as numbered, immutable revisions; included in the records package - Admin → Records Audits: periodic QC checklist (3.2.8.5) combining app checks with a restore test, sampled entries vs. source documents and a user review; next due date on About and in admins' weekly reminder - User instructions at /help/records, linked from the logbook and signing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
412 B
Ruby
12 lines
412 B
Ruby
# An adopted revision of the procedures document, kept for good (the
|
|
# superseded ones are the archive, as AC 120-78B 4.3.8 asks of manuals).
|
|
class ProceduresRevision < ApplicationRecord
|
|
belongs_to :adopted_by, class_name: "User", optional: true
|
|
|
|
scope :latest_first, -> { order(number: :desc) }
|
|
before_update { throw :abort }
|
|
before_destroy { throw :abort }
|
|
|
|
def self.current = latest_first.first
|
|
end
|