New implementation of .model_name using ActiveModel::Naming or ActiveSupport::ModelName if available.