The Rails JSON encoder API requires as_json to take an optional arg

This commit is contained in:
Godfrey Chan
2013-11-29 21:43:44 -08:00
parent 7a60eacca9
commit 6bbea9de0b
6 changed files with 6 additions and 6 deletions

View File

@@ -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"),