register(string, symbol, synonyms = []) public

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_controller/mime_type.rb, line 47
      def register(string, symbol, synonyms = [])
        Mime.send :const_set, symbol.to_s.upcase, Type.new(string, symbol, synonyms)
        SET << Mime.send(:const_get, symbol.to_s.upcase)
        LOOKUP[string] = EXTENSION_LOOKUP[symbol.to_s] = SET.last        
Register or log in to add new notes.