Skip to content

Commit 2c2b92a

Browse files
authored
Merge pull request #122 from projectblacklight/deprecation-warning
Using DeprecatedConstantProxy without a Deprecator is deprecated
2 parents fabd8f7 + 588839c commit 2c2b92a

File tree

1 file changed

+3
-2
lines changed
  • app/controllers/concerns/blacklight/marc

1 file changed

+3
-2
lines changed

app/controllers/concerns/blacklight/marc/catalog.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ module Catalog
99
end
1010

1111
def librarian_view
12+
deprecator = ActiveSupport::Deprecation.new
1213
if Blacklight::VERSION >= '8'
1314
@document = search_service.fetch(params[:id])
14-
@response = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(@document.response, "The @response instance variable is deprecated and will be removed in Blacklight-marc 8.0")
15+
@response = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(@document.response, "The @response instance variable is deprecated and will be removed in Blacklight-marc 8.0", deprecator)
1516

1617
else
1718
deprecated_response, @document = search_service.fetch(params[:id])
18-
@response = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(deprecated_response, "The @response instance variable is deprecated and will be removed in Blacklight-marc 8.0")
19+
@response = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(deprecated_response, "The @response instance variable is deprecated and will be removed in Blacklight-marc 8.0", deprecator)
1920
end
2021

2122
respond_to do |format|

0 commit comments

Comments
 (0)