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

@ -435,7 +435,7 @@ class ApplicationController < ActionController::Base
end
DiscoursePluginRegistry.html_builders.each do |name, blk|
data[name] = blk.call
data[name] = blk.call(self)
end
MultiJson.dump(data)