{"action":"opened","number":24178,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/24178","id":62667580,"html_url":"https://github.com/rails/rails/pull/24178","diff_url":"https://github.com/rails/rails/pull/24178.diff","patch_url":"https://github.com/rails/rails/pull/24178.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/24178","number":24178,"state":"open","locked":false,"title":"Fix ActionView::Rendering include order with jbuilder","user":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"body":"Jbuilder includes `ActionView::Rendering` after ActionController loaded. This overrides `render_to_body` method which is defined by `ActionController::Renderers` and as a result of this you can't render json like `render json: { status: :ok }`.\r\nThis pull request fixes this misbehaviour. Also I'm going to open a pull request for jbuilder to remove module include statement from it.\r\n\r\nI think @rafaelfranca or @spastorino may want to review this.\r\n\r\nCloses #23923\r\n\r\nr? @rafaelfranca","created_at":"2016-03-13T10:31:42Z","updated_at":"2016-03-13T10:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/24178/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/24178/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/24178/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/5dfe0ace8d10e480a2dbc810334f84cb415d3d58","head":{"label":"meinac:action_controller_api_json_bug","ref":"action_controller_api_json_bug","sha":"5dfe0ace8d10e480a2dbc810334f84cb415d3d58","user":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"repo":{"id":21495615,"name":"rails","full_name":"meinac/rails","owner":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meinac/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/meinac/rails","forks_url":"https://api.github.com/repos/meinac/rails/forks","keys_url":"https://api.github.com/repos/meinac/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meinac/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meinac/rails/teams","hooks_url":"https://api.github.com/repos/meinac/rails/hooks","issue_events_url":"https://api.github.com/repos/meinac/rails/issues/events{/number}","events_url":"https://api.github.com/repos/meinac/rails/events","assignees_url":"https://api.github.com/repos/meinac/rails/assignees{/user}","branches_url":"https://api.github.com/repos/meinac/rails/branches{/branch}","tags_url":"https://api.github.com/repos/meinac/rails/tags","blobs_url":"https://api.github.com/repos/meinac/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meinac/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meinac/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/meinac/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meinac/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/meinac/rails/languages","stargazers_url":"https://api.github.com/repos/meinac/rails/stargazers","contributors_url":"https://api.github.com/repos/meinac/rails/contributors","subscribers_url":"https://api.github.com/repos/meinac/rails/subscribers","subscription_url":"https://api.github.com/repos/meinac/rails/subscription","commits_url":"https://api.github.com/repos/meinac/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/meinac/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/meinac/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/meinac/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/meinac/rails/contents/{+path}","compare_url":"https://api.github.com/repos/meinac/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meinac/rails/merges","archive_url":"https://api.github.com/repos/meinac/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meinac/rails/downloads","issues_url":"https://api.github.com/repos/meinac/rails/issues{/number}","pulls_url":"https://api.github.com/repos/meinac/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/meinac/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/meinac/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meinac/rails/labels{/name}","releases_url":"https://api.github.com/repos/meinac/rails/releases{/id}","deployments_url":"https://api.github.com/repos/meinac/rails/deployments","created_at":"2014-07-04T11:44:36Z","updated_at":"2016-02-04T04:04:54Z","pushed_at":"2016-03-13T10:11:36Z","git_url":"git://github.com/meinac/rails.git","ssh_url":"git@github.com:meinac/rails.git","clone_url":"https://github.com/meinac/rails.git","svn_url":"https://github.com/meinac/rails","homepage":"http://rubyonrails.org","size":123249,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"feef64cee4497ed4cdab04fffd37204c84452cee","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-03-13T09:18:26Z","pushed_at":"2016-03-13T07:38:01Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":328917,"stargazers_count":30150,"watchers_count":30150,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12241,"mirror_url":null,"open_issues_count":874,"forks":12241,"open_issues":874,"watchers":30150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/24178"},"html":{"href":"https://github.com/rails/rails/pull/24178"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/24178"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/24178/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/24178/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/24178/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/5dfe0ace8d10e480a2dbc810334f84cb415d3d58"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}