instance method
_parse_file
Ruby on Rails 6.0.6
Since v3.0.20 PrivateSignature
_parse_file(file, entity)
No documentation comment.
Parameters
-
filereq -
entityreq
Source
# File activesupport/lib/active_support/xml_mini.rb, line 174
def _parse_file(file, entity)
f = StringIO.new(::Base64.decode64(file))
f.extend(FileLike)
f.original_filename = entity["name"]
f.content_type = entity["content_type"]
f
end
Defined in activesupport/lib/active_support/xml_mini.rb line 174
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::XmlMini