Skip to content

Commit

Permalink
Pass deprecator instance to DeprecatedConstantProxy
Browse files Browse the repository at this point in the history
This avoids a deprecation error when we don't pass it
  • Loading branch information
jcoyne committed Jul 19, 2024
1 parent 9db259a commit 84f7131
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/riiif.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class ImageNotFoundError < Error; end
# This error is raised when Riiif can't convert an image
class ConversionError < Error; end

HTTPFileResolver = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Riiif::HTTPFileResolver', 'Riiif::HttpFileResolver')
HTTPFileResolver = ActiveSupport::Deprecation::DeprecatedConstantProxy.new(
'Riiif::HTTPFileResolver',
'Riiif::HttpFileResolver',
ActiveSupport::Deprecation.instance
)

mattr_accessor :not_found_image # the image to use when a lookup fails
mattr_accessor :unauthorized_image # the image to use when a user doesn't have access
Expand Down

0 comments on commit 84f7131

Please sign in to comment.