method

register_directory

rails latest stable - Class: Rails::CodeStatistics

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

register_directory(label, path, test_directory: false)
public

Add directories to the output of the `bin/rails stats` command.

Rails::CodeStatistics.register_directory("My Directory", "path/to/dir")

For directories that contain test code, set the `test_directory` argument to true.

Rails::CodeStatistics.register_directory("Model specs", "spec/models", test_directory: true)