method
_normalize_text
v5.1.7 -
Show latest stable
- Class:
ActionController::Rendering
_normalize_text(options)private
No documentation available.
# File actionpack/lib/action_controller/metal/rendering.rb, line 103
def _normalize_text(options)
RENDER_FORMATS_IN_PRIORITY.each do |format|
if options.key?(format) && options[format].respond_to?(:to_text)
options[format] = options[format].to_text
end
end
end