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.0.0.rc2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.0.0.rc1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.5 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.0.0.beta5 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.0.0.beta4 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.0.0.beta3 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.0.0.beta2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-2.0.0.beta1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.4 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.3 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.1 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.0.rc2 app/models/concerns/hyrax/file_set/querying.rb
hyrax-1.0.0.rc1 app/models/concerns/hyrax/file_set/querying.rb
test_hyrax-0.0.1.alpha app/models/concerns/hyrax/file_set/querying.rb