RubyMine incorrectly believes my class inherits directly from Object

I have a class:

class Agency::User < Sequel::Model Sequel[:agency][:users]
...

Elsewhere in the code, I instantiate an object of this class:

@user = Agency::User.new(user_params)

However, RubyMine underlines user_params in red, and says that there is an extra argument (see screenshot).

In reality, this argument isn't extra and the code runs fine. Mousing over Agency::User, it looks like RubyMine thinks that Agency::User inherits from Object instead of Sequel::Model Sequel[:agency][:users] (see other screenshot).

Going to the definition of new opens RubyMine's internal rubystubs basic_object.rb file (see third screenshot). These things put together make me think RubyMine is not correctly identifying Agency::User.

I have tried invalidating the cache and restarting, to no avail. Any other suggestions?

Screenshots below, and also uploaded with upload ID 2020_12_09_Sht1yHkrJmARj79Z.

0
2 comments

Hello David,

that appears to be a known issue so could you please add your vote to it on our tracker: https://youtrack.jetbrains.com/issue/RUBY-22844

1
Avatar
Permanently deleted user

Done. Thanks for the reply.

0

Please sign in to leave a comment.