When running the app on development, everything works as expected. But then I run the app on production and I see many Unitialized constant Somenamespace::Someclass errors. I can see the paths for constants are added to $: and config.autoload_paths (from rails).
I'm using rails 3.2.21.
The same situation works fine with ruby 2.2.0.