lib/fb_graph/node.rb in fb_graph-1.1.2 vs lib/fb_graph/node.rb in fb_graph-1.1.3
- old
+ new
@@ -60,15 +60,10 @@
end
private
def build_endpoint(params = {})
- _endpoint_ = if params[:connection]
- File.join([self.endpoint, params.delete(:connection).to_s, params.delete(:connection_scope)].compact)
- else
- self.endpoint.dup
- end
-
+ _endpoint_ = File.join([self.endpoint, params.delete(:connection), params.delete(:connection_scope)].compact.collect(&:to_s))
params.delete_if do |k, v|
v.blank?
end
if params.delete(:method) == :get && params.present?
_endpoint_ << "?#{params.to_query}"
\ No newline at end of file