lib/koala/graph_collection.rb in koala-1.2.1 vs lib/koala/graph_collection.rb in koala-1.3.0rc1
- old
+ new
@@ -39,11 +39,15 @@
define_method "#{this.to_sym}_page_params" do
return nil unless @paging and @paging[this]
parse_page_url(@paging[this])
end
end
-
+
def parse_page_url(url)
+ GraphCollection.parse_page_url(url)
+ end
+
+ def self.parse_page_url(url)
match = url.match(/.com\/(.*)\?(.*)/)
base = match[1]
args = match[2]
params = CGI.parse(args)
new_params = {}