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


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

def close
  @tempfile.close
end

#closed?Boolean

Returns:

  • (Boolean)

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

def closed?
  @tempfile.closed?
end