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
@sucicfilip
Copy link
Contributor

I would also possibly benefit from this for this PR: Shopify/ruby-lsp-rails#671

Copy link
Member

@rafaelfranca rafaelfranca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes sense to me

@rafaelfranca rafaelfranca added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request server This pull request should be included in the server gem's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants