FIX: ctx parameter is optional

This commit is contained in:
Robin Ward 2017-04-18 13:06:11 -04:00
parent 8b8ee2ad61
commit d82d11a96b

View File

@ -134,7 +134,7 @@ class DiscoursePluginRegistry
html_builders[name] = block html_builders[name] = block
end end
def self.build_html(name, ctx) def self.build_html(name, ctx=nil)
html_builders[name]&.call(ctx) html_builders[name]&.call(ctx)
end end