diff --git a/app/helpers/blacklight/blacklight_helper_behavior.rb b/app/helpers/blacklight/blacklight_helper_behavior.rb index 3fe8706210..4d7c442ba4 100644 --- a/app/helpers/blacklight/blacklight_helper_behavior.rb +++ b/app/helpers/blacklight/blacklight_helper_behavior.rb @@ -332,7 +332,8 @@ def presenter(document) when 'index' index_presenter(document) else - raise "Unable to determine presenter type for #{action_name} on #{controller_name}" + Deprecation.warn(Blacklight::BlacklightHelperBehavior, "Unable to determine presenter type for #{action_name} on #{controller_name}, falling back on deprecated Blacklight::DocumentPresenter") + presenter_class.new(document, self) end end