Skip to content

Commit 27a3f10

Browse files
committed
Clarify the deprecation warning for @document in DocumentTitleComponent. Followup to #3588 & #3643.
1 parent 32ea6bb commit 27a3f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/blacklight/document_title_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(title = nil, presenter:, as: :h3, counter: nil, classes: 'index_t
1818
@document_component = document_component
1919
@actions = actions
2020
@document = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(@presenter.document,
21-
"Don't use the @document instance variable. Instead use @presenter",
21+
"Don't use the @document instance variable. Instead use @presenter.document",
2222
ActiveSupport::Deprecation.new)
2323
end
2424
# rubocop:enable Metrics/ParameterLists

0 commit comments

Comments
 (0)