{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3850","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3850/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3850/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3850/events","html_url":"https://github.com/activeadmin/activeadmin/issues/3850","id":60488066,"number":3850,"title":"How to make the filters in activeadmin built-in comments work","user":{"login":"muhammadn","id":3349747,"avatar_url":"https://avatars.githubusercontent.com/u/3349747?v=3","gravatar_id":"","url":"https://api.github.com/users/muhammadn","html_url":"https://github.com/muhammadn","followers_url":"https://api.github.com/users/muhammadn/followers","following_url":"https://api.github.com/users/muhammadn/following{/other_user}","gists_url":"https://api.github.com/users/muhammadn/gists{/gist_id}","starred_url":"https://api.github.com/users/muhammadn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhammadn/subscriptions","organizations_url":"https://api.github.com/users/muhammadn/orgs","repos_url":"https://api.github.com/users/muhammadn/repos","events_url":"https://api.github.com/users/muhammadn/events{/privacy}","received_events_url":"https://api.github.com/users/muhammadn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-10T11:53:21Z","updated_at":"2015-03-12T08:43:03Z","closed_at":null,"body":"I have this code  \r\n\r\n    def display_name\r\n        reference_id\r\n    end\r\n\r\nin Orders.rb to show the reference_id as the Order in comments, however i cannot search it by filter in the built-in comments. I have also searched in the internet about this but i could not get the answer on how to make the built-in comments more useful in searching comments. (for example, based on reference_id)"},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/78441823","html_url":"https://github.com/activeadmin/activeadmin/issues/3850#issuecomment-78441823","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3850","id":78441823,"user":{"login":"timoschilling","id":165599,"avatar_url":"https://avatars.githubusercontent.com/u/165599?v=3","gravatar_id":"","url":"https://api.github.com/users/timoschilling","html_url":"https://github.com/timoschilling","followers_url":"https://api.github.com/users/timoschilling/followers","following_url":"https://api.github.com/users/timoschilling/following{/other_user}","gists_url":"https://api.github.com/users/timoschilling/gists{/gist_id}","starred_url":"https://api.github.com/users/timoschilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoschilling/subscriptions","organizations_url":"https://api.github.com/users/timoschilling/orgs","repos_url":"https://api.github.com/users/timoschilling/repos","events_url":"https://api.github.com/users/timoschilling/events{/privacy}","received_events_url":"https://api.github.com/users/timoschilling/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T08:43:03Z","updated_at":"2015-03-12T08:43:03Z","body":"This is not testet and just out of my mind, but it should work:\r\n```ruby\r\nActiveAdmin::Comments.class_eval do\r\nfilter :resource_id\r\nfilter :resource_type, as: :select, collection: [...] # a list of your models to select wich resource type you want to find\r\nend\r\n```"}}