diff --git a/lib/bulkrax.rb b/lib/bulkrax.rb index 883fe2a3..948c8c58 100644 --- a/lib/bulkrax.rb +++ b/lib/bulkrax.rb @@ -98,7 +98,22 @@ def collection_model_class attr_writer :collection_model_class def collection_model_internal_resource - collection_model_class.try(:internal_resource) || collection_model_class.to_s + # WARN: Using #try on :internal_resource can yield unexpected results. + # If the method is undefined, it can return a truthy value instead of + # the typical nil. + # + # E.g. + # ```ruby + # Hyrax::FileSet.try(:internal_resource) || 'hi' + # => # # #