diff --git a/app/components/blacklight/document_title_component.rb b/app/components/blacklight/document_title_component.rb index 0cc9c2b3f..b0b281431 100644 --- a/app/components/blacklight/document_title_component.rb +++ b/app/components/blacklight/document_title_component.rb @@ -18,7 +18,7 @@ def initialize(title = nil, presenter:, as: :h3, counter: nil, classes: 'index_t @document_component = document_component @actions = actions @document = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(@presenter.document, - "Don't use the @document instance variable. Instead use @presenter", + "Don't use the @document instance variable. Instead use @presenter.document", ActiveSupport::Deprecation.new) end # rubocop:enable Metrics/ParameterLists