Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix module_breadcrumbs when parent is a class #354

Conversation

jonathanhefner
Copy link
Member

RDoc::Store#find_module_named does not find classes (though RDoc::TopLevel#find_module_named and RDoc::Context#find_module_named both do). Thus, prior to this commit, when a parent module was a class, its breadcrumb would not be linked.

This commit fixes the issue by changing RDoc::Store#find_module_named to RDoc::Store#find_class_or_module.

`RDoc::Store#find_module_named` does not find classes (though
`RDoc::TopLevel#find_module_named` and `RDoc::Context#find_module_named`
both do).  Thus, prior to this commit, when a parent module was a class,
its breadcrumb would not be linked.

This commit fixes the issue by changing `RDoc::Store#find_module_named`
to `RDoc::Store#find_class_or_module`.
@jonathanhefner jonathanhefner merged commit 8f091a0 into rails:main Jan 4, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant