ChangingThePresent
The Few, The Proud, The Pradipta 416
My Resume
Web DOC PDF
RTF ODT TXT
powered by emurse

Rails::Initializer way to do it

bryan / 04.Jun.2007

I ended up going this route: I needed to change the order that things were getting initialized, so I did it here in environment.rb config = Rails::Configuration.new config.connection_adapters = 'exist' config.frameworks -= [ :action_web_service, :action_mailer ] config.plugins = 'exist_adapter' Rails::Initializer.run(:set_load_path, config) Rails::Initializer.run(:require_frameworks, config) Rails::Initializer.run(:load_environment, config) Rails::Initializer.run(:load_plugins, config) Rails::Initializer.run(:set_connection_adapters, config) Rails::Initializer.run(:process, config)

Leave a Comment

back to top

micro theme by seaofclouds, and powered with Mephisto Hosting by hostingrails.com