8 ms·
Back in the day I recall that NotImplementedError was used for metaprogramming dynamic methods - in particular the ActiveRecord helpers that translated to semi-
by brandall10 3y ago
Back in the day I recall that NotImplementedError was used for metaprogramming dynamic methods - in particular the ActiveRecord helpers that translated to semi-natural language based on fields in the db... it would try to create the method on the fly if the fields existed and the convention was adhered to, otherwise it would rethrow. I don't believe those are supported anymore.
- byroot 3y agoYou are thinking of method_missing. It’s an entirely different thing.
- brandall10 3y agoAh, thank you for the correction. It’s been about 8 years since I last worked with ruby in a regular capacity.