History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RUBY-1134
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Oleg Shpynov
Reporter: Andreas Andersson
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Ruby

Go to declaration from model has_many jumps to a controller

Created: 02 Nov 07 23:55   Updated: 09 Nov 07 18:41
Component/s: Rails
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Severity: Medium


 Description  « Hide
When pressing ctrl+b (go to declaration) inside a model with has_many IDEA jumps to a controller where a global variable with the same name is declared. This seems wrong. A better place to go to is the model that infact is referenced. Like this

class Library < ActiveRecord::Base
has_many :books

class Book < ActiveRecord::Base
has_one :library

Pressing ctrl+b with cursor on :books should jump to the Book class and the other way around.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.