{"action":"closed","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3846","repository_url":"https://api.github.com/repos/activeadmin/activeadmin","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3846/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3846/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3846/events","html_url":"https://github.com/activeadmin/activeadmin/issues/3846","id":60357888,"number":3846,"title":"Form helper for associations does not respect custom primary_key in belongs_to","user":{"login":"killthekitten","id":1201569,"avatar_url":"https://avatars0.githubusercontent.com/u/1201569?v=3","gravatar_id":"","url":"https://api.github.com/users/killthekitten","html_url":"https://github.com/killthekitten","followers_url":"https://api.github.com/users/killthekitten/followers","following_url":"https://api.github.com/users/killthekitten/following{/other_user}","gists_url":"https://api.github.com/users/killthekitten/gists{/gist_id}","starred_url":"https://api.github.com/users/killthekitten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killthekitten/subscriptions","organizations_url":"https://api.github.com/users/killthekitten/orgs","repos_url":"https://api.github.com/users/killthekitten/repos","events_url":"https://api.github.com/users/killthekitten/events{/privacy}","received_events_url":"https://api.github.com/users/killthekitten/received_events","type":"User","site_admin":false},"labels":[{"id":46293633,"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/awaiting%20developer%20feedback","name":"awaiting developer feedback","color":"cc317c","default":false},{"id":103370,"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/bug?","name":"bug?","color":"EE3F46","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-03-09T15:13:34Z","updated_at":"2017-04-22T20:28:35Z","closed_at":"2017-04-22T20:28:35Z","body":"I have a model with an association like this:\n\n```\nclass Product < ActiveRecord::Base\n  belongs_to :product_group, primary_key: :custom_id, foreign_key: :custom_product_group_id\nend\n```\n\nBut ActiveAdmin still uses default `id` column for building options for select.\n"}}
{"actor":{"display_login":"deivid-rodriguez"}}