require tp_logger in spec_helper and run TPLogger.start
The main goal of early start is to catch class definitions.
Therefore it is important to start it before loading rails environment and initializers.
require 'tp_logger'
TPLogger.start(filter: 'project_folder_name', dump_path: 'tplogger.csv')Then run rspec spec and wait.
Specs will take a bit more time.
Finally all relations between classes will be dumped into CSV file,
which can be converted to the DOT file using csv2dot.rb script.
ruby ./csv2dot.rb tplogger.csv tplogger.dot