Skip to content

Commit

Permalink
deprecate WorkShowPresenter#member_presenters_for
Browse files Browse the repository at this point in the history
this method delegates directly to another method with virtually the same
name. use that instead.
  • Loading branch information
tamsin johnson committed Apr 30, 2021
1 parent efee62e commit 813b49d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/presenters/hyrax/work_show_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,13 @@ def list_of_item_ids_to_display
paginated_item_list(page_array: authorized_item_ids)
end

##
# @deprecated use `#member_presenters(ids)` instead
#
# @param [Array<String>] ids a list of ids to build presenters for
# @return [Array<presenter_class>] presenters for the array of ids (not filtered by class)
def member_presenters_for(an_array_of_ids)
Deprecation.warn("Use `#member_presenters` instead.")
member_presenters(an_array_of_ids)
end

Expand Down

0 comments on commit 813b49d

Please sign in to comment.