Module: MIME

Defined in:
lib/mime/types/deprecations.rb,
lib/mime/types/loader.rb,
lib/mime/types/columnar.rb

Overview

The namespace for MIME applications, tools, and libraries.

Defined Under Namespace

Classes: Type, Types

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object

MIME::InvalidContentType was moved to MIME::Type::InvalidContentType. Provide a single warning about this fact in the interim.



35
36
37
38
39
40
41
42
43
# File 'lib/mime/types/deprecations.rb', line 35

def const_missing(name) # :nodoc:
  case name.to_s
  when 'InvalidContentType'
    warn_about_moved_constants(name)
    MIME::Type.const_get(name.to_sym)
  else
    super
  end
end