SMERM/EMUForm

View on GitHub
app/models/submitted_file.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

  UPLOAD_CHUNK = 1024000 # TODO: to be tuned
Severity: Minor
Found in app/models/submitted_file.rb by fixme

TODO found
Open

    # TODO: deal with updates
Severity: Minor
Found in app/models/submitted_file.rb by fixme

File.exists? is deprecated in favor of File.exist?.
Open

    File.unlink(self.attached_file_full_path) if File.exists?(self.attached_file_full_path)
Severity: Minor
Found in app/models/submitted_file.rb by rubocop

This cop checks for uses of the deprecated class method usages.

Example:

# bad

File.exists?(some_path)

Example:

# good

File.exist?(some_path)

There are no issues that match your filters.

Category
Status