{"action":"opened","number":3884,"pull_request":{"review_comments":0,"state":"open","created_at":"2011-12-07T02:13:29Z","patch_url":"https://github.com/rails/rails/pull/3884.patch","updated_at":"2011-12-07T02:13:29Z","changed_files":6,"_links":{"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/3884/comments"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/3884/comments"},"html":{"href":"https://github.com/rails/rails/pull/3884"},"self":{"href":"https://api.github.com/repos/rails/rails/pulls/3884"}},"issue_url":"https://github.com/rails/rails/issues/3884","user":{"gravatar_id":"57240e72c8912c80bec2deda9b57d483","id":4912,"url":"https://api.github.com/users/sikachu","login":"sikachu","avatar_url":"https://secure.gravatar.com/avatar/57240e72c8912c80bec2deda9b57d483?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"merged":false,"body":"Rails will now use your default layout (such as \"layouts/application\") when you specify a layout with `:only` and `:except` condition, and those conditions fail.\r\n\r\nFor example, consider this snippet:\r\n\r\n    class CarsController\r\n      layout 'single_car', :only => :show\r\n    end\r\n\r\nRails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.\r\n\r\n---\r\n\r\nBonus point: I found out that `assert_template :layout => 'blahhhhhh'` will returns true regardless of layout that got rendered. I've fixed that as well.","deletions":40,"mergeable":null,"commits":2,"id":566084,"merged_by":null,"base":{"user":{"gravatar_id":"30f39a09e233e8369dddf6feb4be0308","id":4223,"url":"https://api.github.com/users/rails","login":"rails","avatar_url":"https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"repo":{"created_at":"2008-04-11T02:19:47Z","pushed_at":"2011-12-06T20:11:45Z","updated_at":"2011-12-06T23:22:57Z","private":false,"clone_url":"https://github.com/rails/rails.git","name":"rails","svn_url":"https://svn.github.com/rails/rails","watchers":11409,"master_branch":null,"language":"Ruby","forks":2460,"owner":{"gravatar_id":"30f39a09e233e8369dddf6feb4be0308","id":4223,"url":"https://api.github.com/users/rails","login":"rails","avatar_url":"https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"id":8514,"homepage":"http://rubyonrails.org","description":"Ruby on Rails","git_url":"git://github.com/rails/rails.git","html_url":"https://github.com/rails/rails","size":49028,"fork":false,"url":"https://api.github.com/repos/rails/rails","open_issues":612,"ssh_url":"git@github.com:rails/rails.git"},"sha":"885a599303585b796da7a0a1c3ccd0bc5c642134","ref":"master","label":"rails:master"},"additions":125,"number":3884,"head":{"user":{"gravatar_id":"57240e72c8912c80bec2deda9b57d483","id":4912,"url":"https://api.github.com/users/sikachu","login":"sikachu","avatar_url":"https://secure.gravatar.com/avatar/57240e72c8912c80bec2deda9b57d483?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-03-28T20:19:54Z","pushed_at":"2011-12-07T02:13:07Z","updated_at":"2011-12-07T02:13:07Z","private":false,"clone_url":"https://github.com/sikachu/rails.git","name":"rails","svn_url":"https://svn.github.com/sikachu/rails","watchers":1,"master_branch":"master","language":"Ruby","forks":0,"owner":{"gravatar_id":"57240e72c8912c80bec2deda9b57d483","id":4912,"url":"https://api.github.com/users/sikachu","login":"sikachu","avatar_url":"https://secure.gravatar.com/avatar/57240e72c8912c80bec2deda9b57d483?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":1538453,"homepage":"http://rubyonrails.org","description":"Ruby on Rails","git_url":"git://github.com/sikachu/rails.git","html_url":"https://github.com/sikachu/rails","size":152,"fork":true,"url":"https://api.github.com/repos/sikachu/rails","open_issues":0,"ssh_url":"git@github.com:sikachu/rails.git"},"sha":"7926eac9b6a8452cdc30a36e429be8c0c35edb5a","ref":"master-fix_layout","label":"sikachu:master-fix_layout"},"title":"Allow layout fallback when using `layout` method","html_url":"https://github.com/rails/rails/pull/3884","closed_at":null,"diff_url":"https://github.com/rails/rails/pull/3884.diff","url":"https://api.github.com/repos/rails/rails/pulls/3884","merged_at":null}}