File Tree Component

Curated ago by @jeremysmithco

Description

This is a view component that renders out the file tree in the editor menu for RailsInspire.

1
2
3
4
5
class SampleFile < ApplicationRecord
  belongs_to :sample

  validates :path, presence: true, file_path: true
end