{"action":"created","issue":{"url":"https://api.github.com/repos/rails/jbuilder/issues/243","labels_url":"https://api.github.com/repos/rails/jbuilder/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/rails/jbuilder/issues/243/comments","events_url":"https://api.github.com/repos/rails/jbuilder/issues/243/events","html_url":"https://github.com/rails/jbuilder/issues/243","id":57124587,"number":243,"title":"Rails 4.2 jbuilder default keys.","user":{"login":"zw963","id":549126,"avatar_url":"https://avatars.githubusercontent.com/u/549126?v=3","gravatar_id":"","url":"https://api.github.com/users/zw963","html_url":"https://github.com/zw963","followers_url":"https://api.github.com/users/zw963/followers","following_url":"https://api.github.com/users/zw963/following{/other_user}","gists_url":"https://api.github.com/users/zw963/gists{/gist_id}","starred_url":"https://api.github.com/users/zw963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zw963/subscriptions","organizations_url":"https://api.github.com/users/zw963/orgs","repos_url":"https://api.github.com/users/zw963/repos","events_url":"https://api.github.com/users/zw963/events{/privacy}","received_events_url":"https://api.github.com/users/zw963/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-10T03:07:19Z","updated_at":"2015-02-10T14:46:45Z","closed_at":"2015-02-10T03:54:10Z","body":"When use with Rails 4.1, I setting ``attribute_names`` in model, \r\nit will reflect the default jbuilder keys, so I just need render ``#show`` like this\r\n```rb\r\njson.product @product     # => no extra keys arguments be specify anymore.\r\n```\r\n(although if no keys, must specify manully. e.g. ``json.(@product, *@product.attribute_names``\r\n\r\nBut, when update to 4.2, it not valid, seem like attribute_names not affect jbuilder.\r\n\r\nI just want to know, any default value can be specify like 4.1 ? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/rails/jbuilder/issues/comments/73710446","html_url":"https://github.com/rails/jbuilder/issues/243#issuecomment-73710446","issue_url":"https://api.github.com/repos/rails/jbuilder/issues/243","id":73710446,"user":{"login":"zw963","id":549126,"avatar_url":"https://avatars.githubusercontent.com/u/549126?v=3","gravatar_id":"","url":"https://api.github.com/users/zw963","html_url":"https://github.com/zw963","followers_url":"https://api.github.com/users/zw963/followers","following_url":"https://api.github.com/users/zw963/following{/other_user}","gists_url":"https://api.github.com/users/zw963/gists{/gist_id}","starred_url":"https://api.github.com/users/zw963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zw963/subscriptions","organizations_url":"https://api.github.com/users/zw963/orgs","repos_url":"https://api.github.com/users/zw963/repos","events_url":"https://api.github.com/users/zw963/events{/privacy}","received_events_url":"https://api.github.com/users/zw963/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T14:46:45Z","updated_at":"2015-02-10T14:46:45Z","body":"I add a new issue for this:\r\n#246"}}