diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-02-13 15:20:06 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-02-13 15:20:06 +0100 |
| commit | e1bcb13ef41575021951f0eccc502dd1705dc3d0 (patch) | |
| tree | 76e611bc99b5c0f13ddc8a7164930e151067234f /lib | |
| parent | 922c5e4999884cf40f85ea15684405793e813aa7 (diff) | |
| download | zorglub-e1bcb13ef41575021951f0eccc502dd1705dc3d0.zip zorglub-e1bcb13ef41575021951f0eccc502dd1705dc3d0.tar.gz | |
Node.partial : env & no_hooks -> kw args
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/zorglub/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 83947fd..1c77438 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -236,11 +236,11 @@ module Zorglub node.realize! end - def partial(env, meth, *args) + def partial(meth, *args, env: {}, no_hooks: false) node = new(env, meth.to_s, args, partial: true) return error404 node, meth unless node.respond_to? meth - node.feed!(no_hooks: env[:no_hooks]) + node.feed!(no_hooks: no_hooks) node.content end |
