mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Records package: intact status-report styles, no in-app controls; on-condition TSO
- Inlining CSS used String#sub with a replacement string, so "\&" in escaped selectors became "</head>"; use block replacements - Packaged status report and procedures omit the Back link, the print button and the favicon link (they don't work outside the app) - Status report: "On condition (Part 91)" as Tracked as, with remaining hours shown for reference; on condition clears the hard-limit flag Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2fe2f464c1
commit
5471b9317f
6 files changed
+31
-7
No files matched your search
@@ -49,6 +49,9 @@ class Component < ApplicationRecord
|
||||
def engine? = component_type&.name.to_s.match?(/engine/i)
|
||||
def propeller? = component_type&.name.to_s.match?(/propell?er|\bprop\b/i)
|
||||
|
||||
# "On condition" means TBO isn't a limit, so it's never also a hard limit.
|
||||
before_validation { self.tbo_critical = false if on_condition? }
|
||||
|
||||
def hours_to_tbo
|
||||
tbo_hours - hours_since_overhaul if tbo_hours
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user