Open ronen opened 8 years ago
I've partly done this. Schema_associations now uses schema_monkey rather than manually patching, and the alias_method_chain
calls are now replaced with method overrides and super
.
Still WBN to add the appropriate middleware stacks to schema_plus_core
and replace the method overrides with middleware. So keeping this issue open for now.
schema_associations
currently monkey-patchesActiveRecord::Base
, using a bunch ofalias_method_chain
calls.Instead, ideally
schema_plus_core
would provide a middleware stack for the relevant methods (reflect_on_association
and friends), andschema_associations
would then be middleware.