Fix extensions in Rails 2.3