{"action":"created","issue":{"url":"https://api.github.com/repos/elabs/pundit/issues/306","labels_url":"https://api.github.com/repos/elabs/pundit/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/elabs/pundit/issues/306/comments","events_url":"https://api.github.com/repos/elabs/pundit/issues/306/events","html_url":"https://github.com/elabs/pundit/issues/306","id":100306432,"number":306,"title":"Accept parameter in policy method","user":{"login":"zoot123","id":9079596,"avatar_url":"https://avatars.githubusercontent.com/u/9079596?v=3","gravatar_id":"","url":"https://api.github.com/users/zoot123","html_url":"https://github.com/zoot123","followers_url":"https://api.github.com/users/zoot123/followers","following_url":"https://api.github.com/users/zoot123/following{/other_user}","gists_url":"https://api.github.com/users/zoot123/gists{/gist_id}","starred_url":"https://api.github.com/users/zoot123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoot123/subscriptions","organizations_url":"https://api.github.com/users/zoot123/orgs","repos_url":"https://api.github.com/users/zoot123/repos","events_url":"https://api.github.com/users/zoot123/events{/privacy}","received_events_url":"https://api.github.com/users/zoot123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-11T13:04:43Z","updated_at":"2015-08-11T13:34:34Z","closed_at":null,"body":"I have a similar problem like that https://github.com/elabs/pundit/issues/239 . I would like to check if the current_user is like a passed user. I know there is a way to do this with additional context but I think that is much work for this \"easy\" check.\r\nIs there any simple way to pass parameters?\r\nsomething like this\r\n\r\nController:\r\n\r\n```\r\ndef destroy_abo\r\n  authorize @broadcast, @current_user, @user\r\n  ...\r\nend\r\n```\r\n\r\nPolicy\r\n\r\n```\r\ndef destroy_abo?\r\n  return true if (current_user.id == user.id)\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/elabs/pundit/issues/comments/129875186","html_url":"https://github.com/elabs/pundit/issues/306#issuecomment-129875186","issue_url":"https://api.github.com/repos/elabs/pundit/issues/306","id":129875186,"user":{"login":"zoot123","id":9079596,"avatar_url":"https://avatars.githubusercontent.com/u/9079596?v=3","gravatar_id":"","url":"https://api.github.com/users/zoot123","html_url":"https://github.com/zoot123","followers_url":"https://api.github.com/users/zoot123/followers","following_url":"https://api.github.com/users/zoot123/following{/other_user}","gists_url":"https://api.github.com/users/zoot123/gists{/gist_id}","starred_url":"https://api.github.com/users/zoot123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoot123/subscriptions","organizations_url":"https://api.github.com/users/zoot123/orgs","repos_url":"https://api.github.com/users/zoot123/repos","events_url":"https://api.github.com/users/zoot123/events{/privacy}","received_events_url":"https://api.github.com/users/zoot123/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T13:34:34Z","updated_at":"2015-08-11T13:34:34Z","body":"The @broadcast has a has_Many reference to User and the @user is the user which should destroyed from the reference @broadcast.users\r\nUsers should only destroy her own record."}}