mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Workaround for subject evaluation
This commit is contained in:
parent
2c400950a4
commit
1eec9190dd
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ module Spectator
|
||||||
end
|
end
|
||||||
|
|
||||||
macro subject(&block)
|
macro subject(&block)
|
||||||
let(:subject) {{block}}
|
{% if block.is_a?(Nop) %}
|
||||||
|
self.subject
|
||||||
|
{% else %}
|
||||||
|
let(:subject) {{block}}
|
||||||
|
{% end %}
|
||||||
end
|
end
|
||||||
|
|
||||||
macro subject(name, &block)
|
macro subject(name, &block)
|
||||||
|
|
Loading…
Reference in a new issue