Remamed config/application.rb to config/init.rb.Requiring all in init.rb.