Initial objects configuration at environment.rb

Hi all,

I want Rails to execute some code when starting the server, just at the
I can add code to environment.rb; however, if this code makes reference
to the classes in app/models/, an exception appears, cause that classes
are not loaded before environment.rb is.

So, how and where can I set an initial code involving the classes in
app/models of my app?


Have you tried setting up some initializer at config/initializers ?