Skip to content

Conversation

@janko
Copy link
Contributor

@janko janko commented Dec 11, 2025

I needed this for implementing Shopify/ruby-lsp-rails#669, where I had to check whether a node is within an instance method of a subclass of ActiveRecord::Migration[x.y] (see relevant code).

Since the latter isn't a direct class reference, I couldn't use the indexer to check the superclass of the migration class, as that was returning a fallback ::Object.

@janko janko requested a review from a team as a code owner December 11, 2025 20:34
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