Sha256: d8bb86a187fe21cc81b045544a7af9c65e95b35f4ccabf0173c37a93cac4c3bd

Contents?: true

Size: 360 Bytes

Versions: 55

Compression:

Stored size: 360 Bytes

Contents

module Hyrax
  module FileSet
    module Querying
      extend ActiveSupport::Concern

      module ClassMethods
        def where_digest_is(digest_string)
          where Solrizer.solr_name('digest', :symbol) => urnify(digest_string)
        end

        def urnify(digest_string)
          "urn:sha1:#{digest_string}"
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.9.5 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.9.4 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.9.3 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.9.2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.9.1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.9.0 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.8.0 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.7.2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.7.1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.7.0 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.6.0 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.5.1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.5.0 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.4.1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-3.0.0.pre.beta1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.4.0 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.3.3 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.3.2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.3.1 app/models/concerns/hyrax/file_set/querying.rb