lib/fb_graph/node.rb in fb_graph-1.3.2 vs lib/fb_graph/node.rb in fb_graph-1.3.3

- old
+ new

@@ -70,10 +70,10 @@ end def stringfy_params(params) _params_ = params.dup _params_[:access_token] ||= self.access_token - if access_token.is_a?(OAuth2::AccessToken) + if _params_[:access_token].is_a?(OAuth2::AccessToken) _params_[:access_token] = _params_[:access_token].token end _params_.each do |key, value| if value.present? && ![Symbol, String, Numeric, IO].any? { |klass| value.is_a? klass } _params_[key] = value.to_json \ No newline at end of file