method
const_missing
v5.0.0.1 -
Show latest stable
- Class:
Mime
const_missing(sym)public
No documentation available.
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 49
def const_missing(sym)
ext = sym.downcase
if Mime[ext]
ActiveSupport::Deprecation.warn( Accessing mime types via constants is deprecated. Please change `Mime::#{sym}` to `Mime[:#{ext}]`..squish)
Mime[ext]
else
super
end
end