Rails 2.1.0 without a Database

June 3, 2008 — Leave a comment

If you are running the just released Rails 2.1.0 and have disabled ActiveRecord, you will likely run into problems launching script/server.

The culprit is the new config/initializers/new_rails_defaults.rb, which should test to see if ActiveRecord is loaded.

The “bug report is here”:http://rails.lighthouseapp.com/projects/8994/tickets/303-configs-initializers-new_rails_defaults-rb-should-check-for-disabled-frameworks#ticket-303-2 and the patch “AR can be disabled, new_rails_defaults.rb should check” has “already been applied”:http://github.com/rails/rails/commit/4b4aa8f6e08ba2aa2ddce56f1d5b631a78eeef6c.

It’s a very tiny patch, so until the next Rails release is out, you can easily apply the patch manually.

No Comments

Be the first to start the conversation!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s