method

content_type

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: FileHandler
content_type(path) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.