{"action":"created","issue":{"url":"https://api.github.com/repos/sferik/rails_admin/issues/2520","repository_url":"https://api.github.com/repos/sferik/rails_admin","labels_url":"https://api.github.com/repos/sferik/rails_admin/issues/2520/labels{/name}","comments_url":"https://api.github.com/repos/sferik/rails_admin/issues/2520/comments","events_url":"https://api.github.com/repos/sferik/rails_admin/issues/2520/events","html_url":"https://github.com/sferik/rails_admin/issues/2520","id":125227912,"number":2520,"title":"RailsAdmin with polymorphic associations","user":{"login":"dmitrypol","id":210308,"avatar_url":"https://avatars.githubusercontent.com/u/210308?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrypol","html_url":"https://github.com/dmitrypol","followers_url":"https://api.github.com/users/dmitrypol/followers","following_url":"https://api.github.com/users/dmitrypol/following{/other_user}","gists_url":"https://api.github.com/users/dmitrypol/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrypol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrypol/subscriptions","organizations_url":"https://api.github.com/users/dmitrypol/orgs","repos_url":"https://api.github.com/users/dmitrypol/repos","events_url":"https://api.github.com/users/dmitrypol/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrypol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-06T17:54:07Z","updated_at":"2016-02-04T20:39:00Z","closed_at":"2016-02-04T20:39:00Z","body":"I am using, Rails 4.1, RailsAdmin 0.8.1 and Mongoid 5.0.1. I defined has_many / belongs_to relationship between Products and Pictures RailsAdmin generates a Product dropdown in the Picture model. I can choose Product or I can search for Product.\r\n\r\nI implemented polymorphic association between Products, Pictures and Employees. Now when I edit Picture I have 2 dropdowns - to choose type (Product or Employee) and 2nd to choose the actual record.\r\n\r\nThe problem is RailsAdmin is trying to load the entire Employee or Product list into 2nd dropdown. I have many thousands Employees and eventually it timeouts. Any ideas how to search?"},"comment":{"url":"https://api.github.com/repos/sferik/rails_admin/issues/comments/180039822","html_url":"https://github.com/sferik/rails_admin/issues/2520#issuecomment-180039822","issue_url":"https://api.github.com/repos/sferik/rails_admin/issues/2520","id":180039822,"user":{"login":"bbenezech","id":26794,"avatar_url":"https://avatars.githubusercontent.com/u/26794?v=3","gravatar_id":"","url":"https://api.github.com/users/bbenezech","html_url":"https://github.com/bbenezech","followers_url":"https://api.github.com/users/bbenezech/followers","following_url":"https://api.github.com/users/bbenezech/following{/other_user}","gists_url":"https://api.github.com/users/bbenezech/gists{/gist_id}","starred_url":"https://api.github.com/users/bbenezech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbenezech/subscriptions","organizations_url":"https://api.github.com/users/bbenezech/orgs","repos_url":"https://api.github.com/users/bbenezech/repos","events_url":"https://api.github.com/users/bbenezech/events{/privacy}","received_events_url":"https://api.github.com/users/bbenezech/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T20:38:59Z","updated_at":"2016-02-04T20:38:59Z","body":"dup #2461\r\n\r\nMaybe you can try the diff on your side, then reports your findings on the PR?\r\nIt looks like he was close to the end. "}}