Skip to content

Commit

Permalink
Remove the unnecessary documentation of the self.create method
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjmchattie committed Dec 16, 2024
1 parent 653d03b commit eade045
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/resources/api/v2/qc_file_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ def contents
attribute :filename, write_once: true
attr_writer :filename # Do not store the value on the model. This value is consumed by the QcFileProcessor.

# @!method self.create
# Create a new QcFile resource with the uploaded data from a temporary file. This is called by the controller
# when a create request for a QcFile is made. It ensures the contents of the file have been written to a
# new TempFile instance.
# @param context [Hash] The context for the request.
# @return [QcFileResource] The new QcFile resource.
def self.create(context)
opts = { uploaded_data: context.slice(:filename, :tempfile) }
new(QcFile.new(opts), context)
Expand Down

0 comments on commit eade045

Please sign in to comment.