Skip to content
This repository

Jul 06, 2012

  1. Mircea Pricop

    Prevent conflict between mime types and Object methods

    Assuming the type ":touch", was calling
    send(:touch), which instead of triggering method_missing
    and generating a new collector method, actually
    invoked the private method `touch` inherited from
    By generating the method for each mime type as it
    is registered, the private methods on Object can
    never be reached by `send`, because the `Collector`
    will have them before `send` is called on it.
    To do this, a callback mechanism was added to Mime::Type
    This allows someone to add a callback for whenever
    a new mime type is registered. The callback then
    gets called with the new mime as a parameter.
    This is then used in AbstractController::Collector
    to generate new collector methods after each mime
    is registered.
    mirceapricop authored mircea committed

Jun 06, 2012

  1. Akira Matsuda

    Symbol responds_to :upcase & :downcase in Ruby >= 1.9

    amatsuda authored

Feb 26, 2010

  1. José Valim

    Add missing require on abstract_controller/collector [#4061 status:re…

    josevalim authored

Jan 23, 2010

  1. Added AbstractController::Collector.

    José Valim and Mikel Lindsaar authored
Something went wrong with that request. Please try again.