mirror of
https://github.com/github/rails.git
synced 2026-01-24 13:58:12 -05:00
render :nothing shouldnt cause layouts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -218,7 +218,7 @@ module ActionController #:nodoc:
|
||||
|
||||
private
|
||||
def pick_layout(options = {}, deprecated_layout = nil)
|
||||
return deprecated_layout unless deprecated_layout.nil?
|
||||
return deprecated_layout if !deprecated_layout.nil? || (options.is_a?(Hash) && options[:nothing])
|
||||
|
||||
if options.is_a?(Hash)
|
||||
case options[:layout]
|
||||
|
||||
Reference in New Issue
Block a user