lib/fb_graph/node.rb in fb_graph-1.9.0 vs lib/fb_graph/node.rb in fb_graph-1.9.1

- old
+ new

@@ -63,10 +63,12 @@ def build_params(params) _params_ = params.dup _params_[:access_token] ||= self.access_token _params_.delete_if do |k, v| - v.blank? + v.blank? && + # NOTE: allow "key=false" in params (ex. for test user creation, it supports "installed=false") + v != false end _params_.each do |key, value| if value.present? && ![Symbol, String, Numeric, Rack::OAuth2::AccessToken::Legacy, IO].any? { |klass| value.is_a? klass } _params_[key] = value.to_json elsif [Symbol, Numeric, Rack::OAuth2::AccessToken::Legacy].any? { |klass| value.is_a? klass } \ No newline at end of file