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:
parent
060ecf1a24
commit
bdd16a75e6
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue