The following code snippet has a go to definition response on the :bar symbol in has_one :baz, through: :bar. It returns with the class location of baz, while I would expect to either got to the belongs_to :bar definition or the has_one :baz definition in Bar.
class Foo < ActiveRecord::Base
belongs_to :bar
has_one :baz, through: :bar
end
class Bar < ActiveRecord::Base
has_one :foo
has_one :baz
end
class Baz < ActiveRecord::Base
belongs_to :bar
end