method
custom
v3.2.1 -
Show latest stable
- Class:
ActionController::MimeResponds::Collector
custom(mime_type, &block)public
No documentation available.
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 299
def custom(mime_type, &block)
mime_type = Mime::Type.lookup(mime_type.to_s) unless mime_type.is_a?(Mime::Type)
@order << mime_type
@responses[mime_type] ||= block
end