Sha256: 9ad6da3cd6d4dc698642397ae463b9240688d245d9d17eeeac81d33cb2d28acc

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module UrlHelper
    # generated models get registered as curation concerns and need a
    # track_model_path to render Blacklight-related views
    (['FileSet', 'Collection'] + Hyrax.config.registered_curation_concern_types).each do |concern|
      define_method("track_#{concern.constantize.model_name.singular_route_key}_path") { |*args| main_app.track_solr_document_path(*args) }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-3.0.1 app/helpers/hyrax/url_helper.rb
hyrax-3.0.0 app/helpers/hyrax/url_helper.rb
hyrax-3.0.0.pre.rc4 app/helpers/hyrax/url_helper.rb
hyrax-3.0.0.pre.rc3 app/helpers/hyrax/url_helper.rb
hyrax-3.0.0.pre.rc2 app/helpers/hyrax/url_helper.rb