This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
with_layout_format()
public
A method which only uses the first format in the formats array for layout
lookup. This method plays straight with instance variables for performance
reasons.
# File actionpack/lib/action_view/lookup_context.rb, line 205
def with_layout_format
if formats.size == 1
yield
else
old_formats = formats
_set_detail(:formats, formats[0,1])
begin
yield
ensure
_set_detail(:formats, old_formats)
end
end
end