3 ms·
the extensive use of method_missing doesn't help either.
by PittleyDunkin 2y ago
the extensive use of method_missing doesn't help either.
- semiquaver 2y agoCan you point to any substantial places in rails where method_missing is actually used? The only place I’m aware of is dynamic finder methods like find_by_foo, which IIRC were removed years ago. Most of the more magical ORM stuff is implemented using boot-time metaprogramming things like define_method.
- PittleyDunkin 2y agoI'll take your word for it—I'm currently blessed by working outside of the rails ecosystem so my knowledge is likely out of date. EDIT: I'm not bothered by this, but this is a very odd comment to downvote. What on earth is so offensive or distracting about saying someone else is likely more knowledgable than you are? Very confusing.
- rco8786 2y agoThat's been gone since Rails 4 or 5 (we're on 8 now)