module Engine2::BlobSupportAction
Public Instance Methods
serve_blob(handler, entry, inf)
click to toggle source
# File lib/engine2/action/infra.rb, line 83 def serve_blob handler, entry, inf handler.permit entry handler.attachment entry[inf[:name_field]] handler.content_type (entry[inf[:mime_field]].to_s.empty? ? "application/octet-stream" : entry[inf[:mime_field]]) entry[inf[:bytes_field]].getBinaryStream().to_io.read end