{"action":"created","issue":{"url":"https://api.github.com/repos/stellar/xdrgen/issues/11","labels_url":"https://api.github.com/repos/stellar/xdrgen/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/stellar/xdrgen/issues/11/comments","events_url":"https://api.github.com/repos/stellar/xdrgen/issues/11/events","html_url":"https://github.com/stellar/xdrgen/pull/11","id":96207486,"number":11,"title":"Do not use activerecord classify since it de-pluralizes Meta to Metum.","user":{"login":"graydon","id":14097,"avatar_url":"https://avatars.githubusercontent.com/u/14097?v=3","gravatar_id":"","url":"https://api.github.com/users/graydon","html_url":"https://github.com/graydon","followers_url":"https://api.github.com/users/graydon/followers","following_url":"https://api.github.com/users/graydon/following{/other_user}","gists_url":"https://api.github.com/users/graydon/gists{/gist_id}","starred_url":"https://api.github.com/users/graydon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graydon/subscriptions","organizations_url":"https://api.github.com/users/graydon/orgs","repos_url":"https://api.github.com/users/graydon/repos","events_url":"https://api.github.com/users/graydon/events{/privacy}","received_events_url":"https://api.github.com/users/graydon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T01:52:04Z","updated_at":"2015-07-21T18:34:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stellar/xdrgen/pulls/11","html_url":"https://github.com/stellar/xdrgen/pull/11","diff_url":"https://github.com/stellar/xdrgen/pull/11.diff","patch_url":"https://github.com/stellar/xdrgen/pull/11.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/stellar/xdrgen/issues/comments/123430578","html_url":"https://github.com/stellar/xdrgen/pull/11#issuecomment-123430578","issue_url":"https://api.github.com/repos/stellar/xdrgen/issues/11","id":123430578,"user":{"login":"nullstyle","id":366,"avatar_url":"https://avatars.githubusercontent.com/u/366?v=3","gravatar_id":"","url":"https://api.github.com/users/nullstyle","html_url":"https://github.com/nullstyle","followers_url":"https://api.github.com/users/nullstyle/followers","following_url":"https://api.github.com/users/nullstyle/following{/other_user}","gists_url":"https://api.github.com/users/nullstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/nullstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullstyle/subscriptions","organizations_url":"https://api.github.com/users/nullstyle/orgs","repos_url":"https://api.github.com/users/nullstyle/repos","events_url":"https://api.github.com/users/nullstyle/events{/privacy}","received_events_url":"https://api.github.com/users/nullstyle/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T18:34:49Z","updated_at":"2015-07-21T18:34:49Z","body":"Ugh, sorry for you having to wade through the ruby codegen... that was the first of the bunch and is by far the worst.  The other generators have at the very least extracted a method called `name` that is used consistently to go from \"xdr name\" to \"language specific name\".\r\n\r\nRegardless, I would actually like to change one thing with this.  Ruby, unlike XDR hangs some semantics on the casing of a name that we need to preserve.  Namely, an identifier with an initial capital is a constant, which is invariably what we want with any xdr declaration.\r\n\r\nThe non-inflecting, non-singularizing variation of `classify` is `camelize`, which is what we actually want to use in this instance.  It will ensure that we get an identifier that is suitable for a ruby class, even if the xdr name has an initial lower case letter."}}