method
content_type
v5.1.7 -
Show latest stable
- Class:
ActionDispatch::FileHandler
content_type(path)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 80
def content_type(path)
::Rack::Mime.mime_type(::File.extname(path), "text/plain".freeze)
end