Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/annotate_rb/model_annotator/zeitwerk_class_getter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def constant(loader)

# once we have the filepath_relative_to_root_dir, we need to see if it
# falls within one of our Zeitwerk "collapsed" paths.
if loader.collapse.any? { |path| path.include?(root_dir) && file.include?(path.split(root_dir)[1]) }
if loader.collapse.any? { |path| path.include?(root_dir) && @file.include?(path.split(root_dir)[1]) }
# if the file is within a collapsed path, we then need to, for each
# collapsed path, remove the root dir
collapsed = loader.collapse.map { |path| path.split(root_dir)[1].sub(/^\//, "") }.to_set
Expand Down
Loading