lib/roda/plugins/render.rb in roda-3.41.0 vs lib/roda/plugins/render.rb in roda-3.42.0
- old
+ new
@@ -386,9 +386,11 @@
# :nocov:
if (layout_template = render_opts[:optimize_layout]) && !opts[:render][:optimized_layout_method_created]
instance.send(:retrieve_template, :template=>layout_template, :cache_key=>nil, :template_method_cache_key => :_roda_layout)
layout_method = opts[:render][:template_method_cache][:_roda_layout]
define_method(:_layout_method){layout_method}
+ private :_layout_method
+ alias_method(:_layout_method, :_layout_method)
opts[:render] = opts[:render].merge(:optimized_layout_method_created=>true)
end
end
end
end