mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Create new helper method 'Discourse.stats' (#7388)
This commit is contained in:
@@ -468,6 +468,10 @@ module Discourse
|
||||
end
|
||||
end
|
||||
|
||||
def self.stats
|
||||
@stats ||= PluginStore.new("stats")
|
||||
end
|
||||
|
||||
def self.current_user_provider
|
||||
@current_user_provider || Auth::DefaultCurrentUserProvider
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user