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:
@@ -8,7 +8,7 @@ class IncomingLinksReport
|
||||
@data = nil
|
||||
end
|
||||
|
||||
def as_json
|
||||
def as_json(options = nil)
|
||||
{
|
||||
type: self.type,
|
||||
title: I18n.t("reports.#{self.type}.title"),
|
||||
|
||||
Reference in New Issue
Block a user