Class: ActionDispatch::Http::UploadedFile

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/hyrax/templates/config/action_dispatch_http_upload_monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



9
10
11
# File 'lib/generators/hyrax/templates/config/action_dispatch_http_upload_monkey_patch.rb', line 9

def close
  @tempfile.close
end

#closed?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/generators/hyrax/templates/config/action_dispatch_http_upload_monkey_patch.rb', line 5

def closed?
  @tempfile.closed?
end