lib/restful_resource/base.rb in restful_resource-2.13.1 vs lib/restful_resource/base.rb in restful_resource-2.13.2
- old
+ new
@@ -108,10 +108,10 @@
def self.fetch_all!(conditions = {})
Enumerator.new do |y|
next_page = 1
begin
- resources = where(conditions.merge(page: next_page))
+ resources = where(**conditions.merge(page: next_page))
resources.each do |resource|
y << resource
end
next_page = resources.next_page
end while !next_page.nil?