method
method_missing
v2.1.0 -
Show latest stable
- Class:
ActionController::MimeResponds::Responder
method_missing(symbol, &block)public
No documentation available.
# File actionpack/lib/action_controller/mime_responds.rb, line 143
def method_missing(symbol, &block)
mime_constant = symbol.to_s.upcase
if Mime::SET.include?(Mime.const_get(mime_constant))
custom(Mime.const_get(mime_constant), &block)
else
super
end
end