asok / projectile-rails

Emacs Rails mode based on projectile
258 stars 59 forks source link

jumping to appropriate model from has_many / has_one / etc line #94

Closed ndrluis closed 8 years ago

ndrluis commented 8 years ago

If I have the following:

class Foo < AR::Base
  has_many :bars
end

class Bar < AR::Base
  belongs_to :foo
end

I'd like to be able to jump to foo or bar when the point is on :foo or :bars respectively.