Source: show | on GitHub
# 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 class_eval " def #{sym}(*args, &block) custom(Mime[:#{sym}], *args, &block) end ", __FILE__, __LINE__ + 1 end