mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:14:12 +08:00
after_initialize callback for plugins
This commit is contained in:
@ -125,9 +125,12 @@ module Discourse
|
||||
Discourse.activate_plugins!
|
||||
end
|
||||
|
||||
# So open id logs somewhere sane
|
||||
config.after_initialize do
|
||||
# So open id logs somewhere sane
|
||||
OpenID::Util.logger = Rails.logger
|
||||
if plugins = Discourse.plugins
|
||||
plugins.each{|plugin| plugin.notify_after_initialize}
|
||||
end
|
||||
end
|
||||
|
||||
# This is not really required per-se, but we do not want to support
|
||||
|
Reference in New Issue
Block a user