Flowdock
generate_method_for_mime(mime) 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/abstract_controller/collector.rb, line 5
    def self.generate_method_for_mime(mime)
      sym = mime.is_a?(Symbol) ? mime : mime.to_sym
      const = sym.upcase
      class_eval         def #{sym}(*args, &block)                # def html(*args, &block)          custom(Mime::#{const}, *args, &block)  #   custom(Mime::HTML, *args, &block)        end                                      # end, __FILE__, __LINE__ + 1
    end
Register or log in to add new notes.