From 21947338ffd078905afa07d7b3fdf9fee45cc08a Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Sat, 14 Feb 2026 19:10:36 +0100 Subject: may override view in partial call --- lib/zorglub/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 405faac..87ed6a8 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -275,7 +275,7 @@ module Zorglub @request = @parent ? @parent.request : Rack::Request.new(env) @response = @parent ? @parent.response : Rack::Response.new - @view = r(meth) + @view = options[:view] || r(meth) @partial = options[:partial] || false @layout = (options[:partial] ? nil : self.class.layout) -- cgit v1.2.3