# Rails 2.0 and config.to\_prepare

**URL:** <https://www.ruby-forum.com/t/rails-2-0-and-config-to-prepare/123072>\
**Category:** Rails\
**Created:** [December 13, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/rails-2-0-and-config-to-prepare/123072 "2007-12-13T20:41:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewkendall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Post date:** [December 13, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/rails-2-0-and-config-to-prepare/123072/1 "2007-12-13T20:41:56Z")

</div>

Hello,

I’ve recently started migrating a project to 2.0 and came across issues  
running tests. I narrowed the problem down to config.to\_prepare in my  
environment.rb.

As a test, I created a new rails project and simply added…

config.to\_prepare do  
end

to the environment.rb and tests fail in the new project as well.

Can somebody tell me why this is a problem now?

Thanks,  
Andrew
