CLOSER-Cohorts/archivist

View on GitHub
app/models/import.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Import < ApplicationRecord
  belongs_to :document
  belongs_to :dataset
  belongs_to :instrument

  delegate :filename, to: :document, allow_nil: true

  def parsed_log
    JSON.parse(log,symbolize_names: true) rescue []
  end
end