app/presenters/hyrax/file_set_presenter.rb in hyrax-3.0.0.pre.beta2 vs app/presenters/hyrax/file_set_presenter.rb in hyrax-3.0.0.pre.beta3

- old
+ new

@@ -28,10 +28,11 @@ delegate :title, :label, :description, :creator, :contributor, :subject, :publisher, :language, :date_uploaded, :embargo_release_date, :lease_expiration_date, :depositor, :keyword, :title_or_label, :keyword, :date_created, :date_modified, :itemtype, + :original_file_id, to: :solr_document def single_use_links @single_use_links ||= SingleUseLink.where(item_id: id).map { |link| link_presenter_class.new(link) } end @@ -94,12 +95,11 @@ def link_presenter_class SingleUseLinkPresenter end def fetch_parent_presenter - ids = ActiveFedora::SolrService.query("{!field f=member_ids_ssim}#{id}", - fl: ActiveFedora.id_field) - .map { |x| x.fetch(ActiveFedora.id_field) } + ids = Hyrax::SolrService.query("{!field f=member_ids_ssim}#{id}", fl: Hyrax.config.id_field) + .map { |x| x.fetch(Hyrax.config.id_field) } Hyrax::PresenterFactory.build_for(ids: ids, presenter_class: WorkShowPresenter, presenter_args: current_ability).first end end