Method: MIME.const_missing
- Defined in:
- lib/mime/types/deprecations.rb
.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 |