FIX: ctx parameter is optional
This commit is contained in:
parent
8b8ee2ad61
commit
d82d11a96b
|
@ -134,7 +134,7 @@ class DiscoursePluginRegistry
|
|||
html_builders[name] = block
|
||||
end
|
||||
|
||||
def self.build_html(name, ctx)
|
||||
def self.build_html(name, ctx=nil)
|
||||
html_builders[name]&.call(ctx)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue