提交 7fb0d21a 编写于 作者: S Stevie Graham

ActionController::Renderers documentation fix

ActionController::Renderers::RENDERERS is an instance of Set. Docs incorrectly
state that it's a Hash.
上级 50b849c7
......@@ -42,8 +42,8 @@ def _handle_render_options(options)
nil
end
# Hash of available renderers, mapping a renderer name to its proc.
# Default keys are <tt>:json</tt>, <tt>:js</tt>, <tt>:xml</tt>.
# A Set containing renderer names that correspond to available renderer procs.
# Default values are <tt>:json</tt>, <tt>:js</tt>, <tt>:xml</tt>.
RENDERERS = Set.new
# Adds a new renderer to call within controller actions.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册