Skip to Content Skip to Search

module AbstractController::Collector

Public class methods

Source code GitHub
# File actionpack/lib/abstract_controller/collector.rb, line 9
    def self.generate_method_for_mime(mime)
      sym = mime.is_a?(Symbol) ? mime : mime.to_sym
      class_eval <<-RUBY, __FILE__, __LINE__ + 1
        def #{sym}(...)
          custom(Mime[:#{sym}], ...)
        end
      RUBY
    end

Definition files