{"action":"created","issue":{"url":"https://api.github.com/repos/chrisalley/pundit-matchers/issues/14","repository_url":"https://api.github.com/repos/chrisalley/pundit-matchers","labels_url":"https://api.github.com/repos/chrisalley/pundit-matchers/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/chrisalley/pundit-matchers/issues/14/comments","events_url":"https://api.github.com/repos/chrisalley/pundit-matchers/issues/14/events","html_url":"https://github.com/chrisalley/pundit-matchers/issues/14","id":268065560,"number":14,"title":"permit_actions/forbid_actions doesn't accept single item array","user":{"login":"wesley-harding","id":2081303,"avatar_url":"https://avatars1.githubusercontent.com/u/2081303?v=4","gravatar_id":"","url":"https://api.github.com/users/wesley-harding","html_url":"https://github.com/wesley-harding","followers_url":"https://api.github.com/users/wesley-harding/followers","following_url":"https://api.github.com/users/wesley-harding/following{/other_user}","gists_url":"https://api.github.com/users/wesley-harding/gists{/gist_id}","starred_url":"https://api.github.com/users/wesley-harding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesley-harding/subscriptions","organizations_url":"https://api.github.com/users/wesley-harding/orgs","repos_url":"https://api.github.com/users/wesley-harding/repos","events_url":"https://api.github.com/users/wesley-harding/events{/privacy}","received_events_url":"https://api.github.com/users/wesley-harding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-24T14:56:26Z","updated_at":"2017-10-26T12:49:55Z","closed_at":null,"author_association":"NONE","body":"Is there a reason that the permit_actions and forbid_actions refuse an array of a single item? \r\n\r\nI understand their is the singular case for each which accepts a value directly. However, it seems unnecessary to throw a validation error for a single item array. As long as they provided value is an array and is not empty, it seems like it should be accepted.\r\n\r\nI'd like to see this validation taken out as I find it pointless to need to switch the method name when transitioning from a single to multiple (and vice versa) actions. It'd be great to simply use the plural method in all cases so I can easily add/remove arguments.\r\n\r\nI'll happily get a PR in for a change. I wanted to make sure I understood the reasoning behind the current implementation before I went to change it.\r\n\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chrisalley/pundit-matchers/issues/comments/339655062","html_url":"https://github.com/chrisalley/pundit-matchers/issues/14#issuecomment-339655062","issue_url":"https://api.github.com/repos/chrisalley/pundit-matchers/issues/14","id":339655062,"user":{"login":"wesley-harding","id":2081303,"avatar_url":"https://avatars1.githubusercontent.com/u/2081303?v=4","gravatar_id":"","url":"https://api.github.com/users/wesley-harding","html_url":"https://github.com/wesley-harding","followers_url":"https://api.github.com/users/wesley-harding/followers","following_url":"https://api.github.com/users/wesley-harding/following{/other_user}","gists_url":"https://api.github.com/users/wesley-harding/gists{/gist_id}","starred_url":"https://api.github.com/users/wesley-harding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesley-harding/subscriptions","organizations_url":"https://api.github.com/users/wesley-harding/orgs","repos_url":"https://api.github.com/users/wesley-harding/repos","events_url":"https://api.github.com/users/wesley-harding/events{/privacy}","received_events_url":"https://api.github.com/users/wesley-harding/received_events","type":"User","site_admin":false},"created_at":"2017-10-26T12:49:55Z","updated_at":"2017-10-26T12:49:55Z","author_association":"NONE","body":"I think having both options makes a lot of sense from a readability perspective. It just seems unnecessary to enforce singularity on the plural action. \r\n\r\nI'll look to submit a PR in the next couple of days.\r\n"}}
{"actor":{"display_login":"wesley-harding"}}