1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -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:
David Heinemeier Hansson 2005-05-22 16:57:51 +00:00
parent 060ecf1a24
commit bdd16a75e6

View file

@ -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]