I have an object call that is basically initiating a singleton that is needed all over my application. I thought the best place to put this was the environment.rb file, right after the Application.initialize! call. And it had worked with all my tests. But now that I’m running my code in the development environment, I’m finding that it is not getting called. Is there somewhere else I should be putting it, or is there something wrong with my development environment setup?
EDIT: I haven’t looked at the answers yet, but I did find out that it’s not working in development when I have the config.cache_classes set to false.
Try putting it in an initializer file.
See this link for configuring rails.