Re:Rails adds support for Fiber-safe ActiveRecord Connection...
by quesera on Saturday February 26, 2022 @10:57AM
(#30478600)
No, but I do not use an IDE to write Rails code.
I can think of a few cases where Rails architecture would be relatively difficult for IDEs: ActiveRecord callbacks, and of course metaprogramming and magic methods like "find_by_x".
In most cases this sounds like a mismatch between IDE and framework, but the "method_missing" chain could be a unique challenge.
I avoid using that construct in application code, and just accept that some of it exists in the framework -- but that it's almost certainly not the cause of any problem I'm debugging.
Re:Rails adds support for Fiber-safe ActiveRecord Connection...
by treis on Sunday February 27, 2022 @12:55PM
(#30490684)
But sometimes it is. As an example, I've been trying to track down the code that runs for uncaught exception in a controller. It's (probably) somewhere in ActiveController but there's no easy way to find it.
You've never been in an IDE, tried a go to definition, and have it not work?