Closed jkr2255 closed 6 years ago
By current implement of ExtendedRecord, A new class is generated each time ActiveType::Record.[] is invoked.
ExtendedRecord
ActiveType::Record.[]
It might be a problem in some use cases:
ActiveType:Rrecord.[]
ActiveType::Record[SomeRecord] != ActiveType::Record[SomeRecord]
Caching generated classes will solve these problems.
I think that caching developer classes in a gem global would cause havoc with Rails' autoloading.
For what purpose are you calling ActiveType::Record.[] that often?
By current implement of
ExtendedRecord
, A new class is generated each timeActiveType::Record.[]
is invoked.It might be a problem in some use cases:
ActiveType:Rrecord.[]
inside loop yields generation of many classesActiveType::Record[SomeRecord] != ActiveType::Record[SomeRecord]
, it may confuse classification.Caching generated classes will solve these problems.