Skip to content

Commit

Permalink
🐛 Use non-deprecated and non-removed method
Browse files Browse the repository at this point in the history
The `member_presenters_for` was removed in
samvera/hyrax@eeb3c3e;
the deprecation advice prior to removal was to use `member_presenters`

Related to:

- samvera/hyrax#6203
  • Loading branch information
jeremyf committed Jan 8, 2024
1 parent 0fbde50 commit 5894b93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def locale_for(type:, term:, record_class:)
locale = t("hyrax.#{record_class}.#{type}.#{term}")

if missing_translation(locale)
(t("simple_form.#{type}.#{work_or_collection}.#{term}") || term.titleize) .html_safe
(t("simple_form.#{type}.#{work_or_collection}.#{term}") || term.titleize) .html_safe
else
locale.html_safe
end
Expand Down
2 changes: 1 addition & 1 deletion app/services/iiif_print/tenant_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def members_include_iiif_viewable?
def iiif_presentable_member_presenters
if TenantConfig.use_iiif_print?
presentable_member_ids = Array.wrap(solr_document.try(:file_set_ids) || solr_document.try(:[], 'file_set_ids_ssim'))
member_presenters_for(presentable_member_ids)
member_presenters(presentable_member_ids)
else
file_set_presenters
end
Expand Down

0 comments on commit 5894b93

Please sign in to comment.