app/models/resource.rb
# TODO: the name of this file is not DRY and is too long. Extract a method.
the name of this file is not DRY and is too long. Extract a method.
the name of this file is not DRY and is too long . Extract a method .
def delete_resource_contributions_file
    File.delete("#{$RESOURCE_CONTRIBUTIONS_DIR}/"\
      "resource_contributions_#{self.id}.json") if
      File.file?("#{$RESOURCE_CONTRIBUTIONS_DIR}/"\
        "resource_contributions_#{self.id}.json")
  end
def delete_resource_contributions_file File . delete ( "#{$RESOURCE_CONTRIBUTIONS_DIR}/" "resource_contributions_#{self.id}.json" ) if File . file? ( "#{$RESOURCE_CONTRIBUTIONS_DIR}/" "resource_contributions_#{self.id}.json" ) end
TODO: the name of this file is not DRY and is too long.
TODO : the name of this file is not DRY and is too long .