From 6cee5aaec72f96b52a4b79a4d068466cf76653f8 Mon Sep 17 00:00:00 2001 From: nov Date: Tue, 7 Jul 2015 17:25:57 +0900 Subject: [PATCH] support insight metrics as edge_scope close #78 --- lib/fb_graph2/edge/insights.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fb_graph2/edge/insights.rb b/lib/fb_graph2/edge/insights.rb index 660f646..75fc279 100644 --- a/lib/fb_graph2/edge/insights.rb +++ b/lib/fb_graph2/edge/insights.rb @@ -2,7 +2,7 @@ module FbGraph2 class Edge module Insights def insights(params = {}) - insights = self.edge :insights, params + insights = self.edge :insights, params.except(:metrics), edge_scope: params[:metrics] insights.collect! do |insight| Insight.new(insight[:id], insight).authenticate self.access_token end