instance method
_normalize_text
Ruby on Rails 7.2.3
Since v4.1.16 PrivateSignature
_normalize_text(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 241
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
Defined in actionpack/lib/action_controller/metal/rendering.rb line 241
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Rendering