Archives For ActiveRecord

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.