mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't recurse when ActionController#render is called without any arguments
This commit is contained in:
@@ -862,7 +862,7 @@ module ActionController #:nodoc:
|
||||
validate_render_arguments(options, extra_options, block_given?)
|
||||
|
||||
if options.nil?
|
||||
return render(:file => default_template, :layout => true)
|
||||
options = { :template => default_template.filename, :layout => true }
|
||||
elsif options == :update
|
||||
options = extra_options.merge({ :update => true })
|
||||
elsif options.is_a?(String) || options.is_a?(Symbol)
|
||||
|
||||
Reference in New Issue
Block a user