app/helpers/browse_everything_helper.rb
def mime_match?(value, matcher)
    v1, v2 = value.split('/', 2)
    m1, m2 = matcher.split('/', 2)
    return false if m1 != '*' && v1 != m1
    m2.nil? || m2 == '*' || m2 == v2
  end
# Extracted from Rack::Mime 1.5.2 for use with earlier versions of Rack/Rails
# @param [String] value
# @param [String] matcher
# @return [TrueClass,FalseClass]
Extracted from Rack::Mime 1.5.2 for use with earlier versions of Rack/Rails
Extracted from Rack :: Mime 1 . 5 . 2 for use with earlier versions of Rack / Rails
def mime_match?(value, matcher)
    v1, v2 = value.split('/', 2)
    m1, m2 = matcher.split('/', 2)
    return false if m1 != '*' && v1 != m1
    m2.nil? || m2 == '*' || m2 == v2
  end
def mime_match? ( value , matcher ) v1 , v2 = value . split ( '/' , 2 ) m1 , m2 = matcher . split ( '/' , 2 ) return false if m1 != '*' && v1 != m1 m2 . nil? || m2 == '*' || m2 == v2 end
Extracted from Rack::Mime 1.5.2 for use with earlier versions of Rack/Rails
Extracted from Rack :: Mime 1 . 5 . 2 for use with earlier versions of Rack / Rails
None
TrueClass,FalseClass
value
matcher
None