use Rails.application in 3.1, too.