mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Pass a context in when using a HTML builder
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user