{"action":"created","issue":{"url":"https://api.github.com/repos/toptal/chewy/issues/414","repository_url":"https://api.github.com/repos/toptal/chewy","labels_url":"https://api.github.com/repos/toptal/chewy/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/toptal/chewy/issues/414/comments","events_url":"https://api.github.com/repos/toptal/chewy/issues/414/events","html_url":"https://github.com/toptal/chewy/pull/414","id":170013589,"number":414,"title":"Allow app/chewy location to be changed via yml config","user":{"login":"robacarp","id":208647,"avatar_url":"https://avatars.githubusercontent.com/u/208647?v=3","gravatar_id":"","url":"https://api.github.com/users/robacarp","html_url":"https://github.com/robacarp","followers_url":"https://api.github.com/users/robacarp/followers","following_url":"https://api.github.com/users/robacarp/following{/other_user}","gists_url":"https://api.github.com/users/robacarp/gists{/gist_id}","starred_url":"https://api.github.com/users/robacarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robacarp/subscriptions","organizations_url":"https://api.github.com/users/robacarp/orgs","repos_url":"https://api.github.com/users/robacarp/repos","events_url":"https://api.github.com/users/robacarp/events{/privacy}","received_events_url":"https://api.github.com/users/robacarp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-08T20:10:01Z","updated_at":"2016-08-09T15:22:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/toptal/chewy/pulls/414","html_url":"https://github.com/toptal/chewy/pull/414","diff_url":"https://github.com/toptal/chewy/pull/414.diff","patch_url":"https://github.com/toptal/chewy/pull/414.patch"},"body":"Hello again!\r\n\r\nIn our rails application directory we have the following folders:\r\n\r\n```\r\nassets/\r\ncontexts/\r\ncontrollers/\r\nerrors/\r\nexporters/\r\nhelpers/\r\njobs/\r\nmailers/\r\nmodels/\r\npolicies/\r\nserializers/\r\nviews/\r\n```\r\n\r\nWhile integrating the Chewy gem, I added the `app/chewy` folder to the application. There were a few complaints that 'chewy' didn't match the convention applied in the `app/` directory, and so I was able to change it to `app/indices` with a little creative monkey patching.\r\n\r\nThis patch allows the directory to be set with a new config option called `index_definition_path`.\r\n\r\nI tried to find every place the path was hard coded and replace with `Chewy.configuration[:index_definition_path]`.\r\n\r\nAdditionally, the default setting is `app/chewy` so current deployments shouldn't need to change anything.\r\n\r\nThoughts?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/toptal/chewy/issues/comments/238588428","html_url":"https://github.com/toptal/chewy/pull/414#issuecomment-238588428","issue_url":"https://api.github.com/repos/toptal/chewy/issues/414","id":238588428,"user":{"login":"robacarp","id":208647,"avatar_url":"https://avatars.githubusercontent.com/u/208647?v=3","gravatar_id":"","url":"https://api.github.com/users/robacarp","html_url":"https://github.com/robacarp","followers_url":"https://api.github.com/users/robacarp/followers","following_url":"https://api.github.com/users/robacarp/following{/other_user}","gists_url":"https://api.github.com/users/robacarp/gists{/gist_id}","starred_url":"https://api.github.com/users/robacarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robacarp/subscriptions","organizations_url":"https://api.github.com/users/robacarp/orgs","repos_url":"https://api.github.com/users/robacarp/repos","events_url":"https://api.github.com/users/robacarp/events{/privacy}","received_events_url":"https://api.github.com/users/robacarp/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T15:22:26Z","updated_at":"2016-08-09T15:22:26Z","body":"@pyromaniac excellent! Updated"}}
{"actor":{"display_login":"robacarp"}}