Class: Jazari::Runbook
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Jazari::Runbook
- Defined in:
- app/models/jazari/runbook.rb
Overview
One subject's override of the canon. Materialized on first customization — never on read.
Class Method Summary collapse
-
.table_name ⇒ Object
Resolved on EVERY call, not assigned at class-definition time.
Class Method Details
.table_name ⇒ Object
Resolved on EVERY call, not assigned at class-definition time.
Assigning it eagerly made the binding depend on load order: under Zeitwerk
a host's configure runs before these constants autoload, so the
assignment never happened and the model silently kept the gem's default
name. A host adopting existing tables then queried tables that do not
exist. Reading config here removes the ordering question entirely.
14 |
# File 'app/models/jazari/runbook.rb', line 14 def self.table_name = Jazari.table_name_for(:runbooks) |