Module: Hyrax::FileSet::Querying::ClassMethods

Defined in:
app/models/concerns/hyrax/file_set/querying.rb

Instance Method Summary collapse

Instance Method Details

#urnify(digest_string) ⇒ Object


12
13
14
# File 'app/models/concerns/hyrax/file_set/querying.rb', line 12

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

#where_digest_is(digest_string) ⇒ Object


8
9
10
# File 'app/models/concerns/hyrax/file_set/querying.rb', line 8

def where_digest_is(digest_string)
  where "digest_ssim" => urnify(digest_string)
end