Cleanup for older versions of Rails.