Class: Jazari::Runbook

Inherits:
ApplicationRecord show all
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

Class Method Details

.table_nameObject

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)