class

Lustra::Model::Factory::PolymorphicFactory(T)

Inherits Lustra::Model::Factory::Base < Reference < Object

Constructors

new(type_field : String, self_class : String)
Source

Instance methods

build(h : Hash(String, Lustra::SQL::Any), cache : Lustra::Model::QueryCache | Nil = nil, persisted : Bool = false, fetch_columns : Bool = false) : Lustra::Model
Source
self_class
Source
self_class=(self_class : String)
Source
type_field
Source
type_field=(type_field : String)
Source