instance method
_parse_file
Ruby on Rails 4.1.16
Since v3.0.20Signature
_parse_file(file, entity)
No documentation comment.
Parameters
-
filereq -
entityreq
Source
# File activesupport/lib/active_support/xml_mini.rb, line 165
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 165
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::XmlMini