Xavier Noria

Results 118 comments of Xavier Noria

I don't know if it is related to this, but I opened a new small project, and `⌘P` is not finding anything. It does if I browse the file tree...

The guide points to the config file where credentials are stored for the test databases. I believe that is enough because the guide cannot assume how did you set things...

This feature seems odd to me. If users need Active Record before the application has fully booted, how are they supposed to run the code and get no warnings?

For example, let's consider this widely used pattern: ```ruby config.to_prepare do # Setup an AR model on boot and reload here. end ``` Which would be the alternative?

@p8 But, if you execute `bin/rails r 1`, you'll see the block gets executed. My point is, if I need to do something during boot, I need to. I cannot...

Smells like a XY solution to me, guess @casperisfine has a similar feeling from his comment. Legit use cases cannot get warnings. Is like saying, don't use a database, it...

Note that while the `server` command does not load Active Record when the application boots, at least `runner`, `console`, and `test` do. So even if you configure all that, you...

To me, `on_load` is: Rails controls when things are ready, you need to play by the rules and use this.

@p8 Yes! But they are not about performance, they are about load order, right? Some people comment on passing about booting, but that is just a _potential_ consequence of delaying...

In other words, Rails is the one who decides when frameworks are loaded. And Rails may decide some have to be loaded at boot time (as it does for AR...