1
0
Fork 0
mirror of https://github.com/nov/fb_graph2 synced 2023-03-27 23:22:15 -04:00

FB fixed unexpected format of "summary" bug

https://developers.facebook.com/bugs/718373648210494
This commit is contained in:
nov 2014-08-22 16:52:39 +09:00
parent 576ae73e80
commit e7d4e4308b

View file

@ -34,8 +34,6 @@ module FbGraph2
end
def summarize(summary)
# NOTE: notifications edge returns "summary" as a blank Array.
summary = Hash(summary)
self.order = summary.try(:[], :order)
self.total_count = summary.try(:[], :total_count)
end