diff options
| author | Jérémy Zurcher <jeremy.asynk.ch> | 2026-02-14 19:10:36 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy.asynk.ch> | 2026-02-14 19:10:36 +0100 |
| commit | 21947338ffd078905afa07d7b3fdf9fee45cc08a (patch) | |
| tree | 0127ec34368048a005025c0704c788057fffe3b8 /lib | |
| parent | dbe5078f445fb25da2e055ba7a42e4bd56cd7fb3 (diff) | |
| download | zorglub-21947338ffd078905afa07d7b3fdf9fee45cc08a.zip zorglub-21947338ffd078905afa07d7b3fdf9fee45cc08a.tar.gz | |
may override view in partial call
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/zorglub/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
