Fix notice messages for Rails 4.