mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
e6e591dffc
commit
bbdb54ad15
1 changed files with 7 additions and 2 deletions
|
@ -6,8 +6,13 @@ module ActionView
|
|||
@view = context
|
||||
@details = extract_details(options)
|
||||
template = determine_template(options)
|
||||
@lookup_context.rendered_format ||= template.formats.first
|
||||
@lookup_context.formats = template.formats
|
||||
context = @lookup_context
|
||||
|
||||
unless context.rendered_format
|
||||
context.rendered_format = template.formats.first
|
||||
context.formats = template.formats
|
||||
end
|
||||
|
||||
render_template(template, options[:layout], options[:locals])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue