{"action":"created","issue":{"url":"https://api.github.com/repos/rails/jbuilder/issues/283","labels_url":"https://api.github.com/repos/rails/jbuilder/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/rails/jbuilder/issues/283/comments","events_url":"https://api.github.com/repos/rails/jbuilder/issues/283/events","html_url":"https://github.com/rails/jbuilder/issues/283","id":92905292,"number":283,"title":"array! with attributes and block at the same time","user":{"login":"clamoris","id":2946397,"avatar_url":"https://avatars.githubusercontent.com/u/2946397?v=3","gravatar_id":"","url":"https://api.github.com/users/clamoris","html_url":"https://github.com/clamoris","followers_url":"https://api.github.com/users/clamoris/followers","following_url":"https://api.github.com/users/clamoris/following{/other_user}","gists_url":"https://api.github.com/users/clamoris/gists{/gist_id}","starred_url":"https://api.github.com/users/clamoris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clamoris/subscriptions","organizations_url":"https://api.github.com/users/clamoris/orgs","repos_url":"https://api.github.com/users/clamoris/repos","events_url":"https://api.github.com/users/clamoris/events{/privacy}","received_events_url":"https://api.github.com/users/clamoris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-03T16:27:23Z","updated_at":"2015-09-29T20:34:38Z","closed_at":"2015-09-29T20:34:38Z","body":"It would be nice to have \r\n```ruby\r\n  json.array! @all_tests, :_id, :name  do |test|\r\n    json.is_current_user_owner test.owner == current_user\r\n  end\r\n```\r\ninstead of, \r\n\r\n```ruby\r\n  json.array! @all_tests  do |test|\r\n    json._id test._id\r\n    json.name test.name\r\n\r\n    json.is_current_user_owner test.owner == current_user\r\n  end\r\n```\r\n\r\nespecially for large objects with many attributes\r\n"},"comment":{"url":"https://api.github.com/repos/rails/jbuilder/issues/comments/144183853","html_url":"https://github.com/rails/jbuilder/issues/283#issuecomment-144183853","issue_url":"https://api.github.com/repos/rails/jbuilder/issues/283","id":144183853,"user":{"login":"rwz","id":129043,"avatar_url":"https://avatars.githubusercontent.com/u/129043?v=3","gravatar_id":"","url":"https://api.github.com/users/rwz","html_url":"https://github.com/rwz","followers_url":"https://api.github.com/users/rwz/followers","following_url":"https://api.github.com/users/rwz/following{/other_user}","gists_url":"https://api.github.com/users/rwz/gists{/gist_id}","starred_url":"https://api.github.com/users/rwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwz/subscriptions","organizations_url":"https://api.github.com/users/rwz/orgs","repos_url":"https://api.github.com/users/rwz/repos","events_url":"https://api.github.com/users/rwz/events{/privacy}","received_events_url":"https://api.github.com/users/rwz/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T20:34:38Z","updated_at":"2015-09-29T20:34:38Z","body":"The performance is not the issue here. The issue is increasingly broad way api can react to every possible method invocation tends to add more magic and complexity that produces slower and harder-to-maintain and support code for a use case of a questionable value."}}