Rails 4: ActiveModel::Name is not a String anymore.

This changes can be applied directly to `master`.