{"action":"created","issue":{"url":"https://api.github.com/repos/state-machines/state_machines/issues/26","labels_url":"https://api.github.com/repos/state-machines/state_machines/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/state-machines/state_machines/issues/26/comments","events_url":"https://api.github.com/repos/state-machines/state_machines/issues/26/events","html_url":"https://github.com/state-machines/state_machines/issues/26","id":102740656,"number":26,"title":"Add `with_state` method","user":{"login":"johannesluedke","id":6094143,"avatar_url":"https://avatars.githubusercontent.com/u/6094143?v=3","gravatar_id":"","url":"https://api.github.com/users/johannesluedke","html_url":"https://github.com/johannesluedke","followers_url":"https://api.github.com/users/johannesluedke/followers","following_url":"https://api.github.com/users/johannesluedke/following{/other_user}","gists_url":"https://api.github.com/users/johannesluedke/gists{/gist_id}","starred_url":"https://api.github.com/users/johannesluedke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannesluedke/subscriptions","organizations_url":"https://api.github.com/users/johannesluedke/orgs","repos_url":"https://api.github.com/users/johannesluedke/repos","events_url":"https://api.github.com/users/johannesluedke/events{/privacy}","received_events_url":"https://api.github.com/users/johannesluedke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T08:50:21Z","updated_at":"2015-08-24T09:34:47Z","closed_at":null,"body":"Migrating from state_machine, I am missing the `.with_state` option. Could it be included to this gem to make it more compatible?\r\n\r\nSyntax: \r\n\r\n    Model.with_state([:new, :confirmed]\r\n\r\nqueries for objects WHERE state IN (?), [\"new\", \"confirmed\"]"},"comment":{"url":"https://api.github.com/repos/state-machines/state_machines/issues/comments/134110780","html_url":"https://github.com/state-machines/state_machines/issues/26#issuecomment-134110780","issue_url":"https://api.github.com/repos/state-machines/state_machines/issues/26","id":134110780,"user":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=3","gravatar_id":"","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T09:34:47Z","updated_at":"2015-08-24T09:34:47Z","body":"Model ?\r\n\r\nYou need to use https://github.com/state-machines/state_machines-activerecord"}}