Add 'initialize_on_precompile = false' to config/application.rb