FEATURE: support serializing user custom fields by plugins
This commit is contained in:
@@ -13,6 +13,8 @@ class DiscoursePluginRegistry
|
||||
attr_accessor :sass_variables
|
||||
attr_accessor :handlebars
|
||||
attr_accessor :custom_html
|
||||
attr_accessor :serialized_current_user_fields
|
||||
|
||||
|
||||
# Default accessor values
|
||||
def javascripts
|
||||
@@ -46,6 +48,10 @@ class DiscoursePluginRegistry
|
||||
def handlebars
|
||||
@handlebars ||= Set.new
|
||||
end
|
||||
|
||||
def serialized_current_user_fields
|
||||
@serialized_current_user_fields ||= Set.new
|
||||
end
|
||||
end
|
||||
|
||||
def register_js(filename, options={})
|
||||
|
||||
Reference in New Issue
Block a user