FIX: ctx parameter is optional

This commit is contained in:
Robin Ward 2017-04-18 13:06:11 -04:00
parent 8b8ee2ad61
commit d82d11a96b
1 changed files with 1 additions and 1 deletions

View File

@ -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