Method: Qa::MeshTree#classify_tree!

Defined in:
app/models/qa/mesh_tree.rb

#classify_tree!Object



18
19
20
21
22
23
24
# File 'app/models/qa/mesh_tree.rb', line 18

def classify_tree!
  unless classify_tree.empty? # rubocop:disable Style/GuardClause
    tree_path = classify_tree.join('|')
    Rails.logger.info "After Join #{tree_path.inspect}"
    update_attribute(:eval_tree_path, tree_path) # rubocop:disable Rails/SkipsModelValidations # TODO: Explore how to avoid use of update_attribute.
  end
end