{"action":"opened","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4303","repository_url":"https://api.github.com/repos/activeadmin/activeadmin","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4303/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4303/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4303/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4303","id":131796623,"number":4303,"title":"Comments build_comment and the delete link","user":{"login":"lrcrews","id":443265,"avatar_url":"https://avatars.githubusercontent.com/u/443265?v=3","gravatar_id":"","url":"https://api.github.com/users/lrcrews","html_url":"https://github.com/lrcrews","followers_url":"https://api.github.com/users/lrcrews/followers","following_url":"https://api.github.com/users/lrcrews/following{/other_user}","gists_url":"https://api.github.com/users/lrcrews/gists{/gist_id}","starred_url":"https://api.github.com/users/lrcrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrcrews/subscriptions","organizations_url":"https://api.github.com/users/lrcrews/orgs","repos_url":"https://api.github.com/users/lrcrews/repos","events_url":"https://api.github.com/users/lrcrews/events{/privacy}","received_events_url":"https://api.github.com/users/lrcrews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-06T00:28:34Z","updated_at":"2016-02-06T00:28:34Z","closed_at":null,"body":"The comment UI generated by the build_comment method (https://github.com/activeadmin/activeadmin/blob/b44b4f4896ef78b50c35c82a343356d68b937cde/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb#L31) will add in a \"Delete Comment\" `if authorized?(ActiveAdmin::Auth::DESTROY, comment)`, however, if I remove the `:destroy` ability:\r\n\r\n    ActiveAdmin.register ActiveAdminComment, as: \"Comments\" do\r\n      \r\n        actions :all, except: [ :destroy ]\r\n    \r\n    end\r\n\r\nThe \"Delete Comment\" is still shown.  (doing the above does properly remove the path, the delete link from the index page, and the delete button from the show page)."}}