Files
simple-aircraft-manager-rails/app/models/procedures_revision.rb
T
rickyandClaude Opus 5.5 761f381679 Recordkeeping procedures, QC audits and user instructions (AC 120-78B)
- 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>
2026-11-07 13:30:46 -05:00

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