mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
The Rails JSON encoder API requires as_json to take an optional arg
This commit is contained in:
@@ -61,7 +61,7 @@ class AdminDashboardData
|
||||
AdminDashboardData.new.problems
|
||||
end
|
||||
|
||||
def as_json
|
||||
def as_json(options = nil)
|
||||
@json ||= {
|
||||
reports: REPORTS.map { |type| Report.find(type).as_json },
|
||||
admins: User.admins.count,
|
||||
|
||||
Reference in New Issue
Block a user