I have a ruby class similar to the following:
request = Rack::Request.new(arg)
response = Rack::Response.new
When doing inspect on this file I get an error on the Rack::Response.new informing me that it's missing two arguments. If I select this method and the use 'Go To' in the context method I end up in a class from the project file 'some/other/http/response.rb'. The name of the class found in that file is:
It seems like RubyMine completely disregards the fact that the name is qualified and chooses a class from the project source but in a different module instead of the correct one imported by the rack gem. The Rack::Request class on the line above does not have this problem. If I use 'Go To' on that class it ends up in the rack gem.
I have seen similar problems in other places where RubyMine seems to disregard the module hierarcy completely. What am I doing wrong?