fix syntax error

This commit is contained in:
r888888888
2015-08-13 12:10:14 -07:00
parent d2f71e9f30
commit c1fded37d2

View File

@@ -7,7 +7,7 @@ class PopularSearchService
@scale = scale
end
def each_search(&block, limit = 100)
def each_search(limit = 100, &block)
fetch_data.scan(/(.+?) (\d+)\.0\n/).slice(0, limit).each(&block)
end