Flowdock
method

setup_mime_types

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: Rails::MongrelServer::RailsConfigurator
setup_mime_types() public

No documentation

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

Hide source
# File railties/lib/rails/mongrel_server/commands.rb, line 29
      def setup_mime_types
        mime = {}

        if defaults[:mime_map]
          Mongrel.log("Loading additional MIME types from #{defaults[:mime_map]}")
          mime = load_mime_map(defaults[:mime_map], mime)
        end

        mime.each {|k,v| Mongrel::DirHandler::add_mime_type(k,v) }
      end
Register or log in to add new notes.