This is a view component that renders out the file tree in the editor menu for RailsInspire.
class SampleFile < ApplicationRecord belongs_to :sample validates :path, presence: true, file_path: true end