lib/hydra/works/characterization/fits_document.rb
# Can't use .mime_type because it's already defined for this document so method missing won't work.
# t.file_mime_type(proxy: [:identification, :identity, :mime_type])
Can't use .mime_type because it's already defined for this document so method missing won't work.
Can ' t use . mime_type because it ' s already defined for this document so method missing won ' t work .
def file_mime_type
      ng_xml.css("fits > identification > identity").map { |n| n['mimetype'].split(',').first }
    end
def file_mime_type ng_xml . css ( "fits > identification > identity" ) . map { | n | n [ 'mimetype' ] . split ( ',' ) . first } end
Can't use .mime_type because it's already defined for this document so method missing won't work.
Can ' t use . mime_type because it ' s already defined for this document so method missing won ' t work .
# Sometimes, FITS reports the mimetype attribute as a comma-separated string. # All terms are arrays and, in this case, there is only one element, so scan the first.