Pass a context in when using a HTML builder

This commit is contained in:
Robin Ward
2017-04-18 12:35:19 -04:00
parent a19c02f0d3
commit 8b8ee2ad61
4 changed files with 7 additions and 4 deletions

View File

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