lib/gummi/repository/result.rb in gummi-0.0.9 vs lib/gummi/repository/result.rb in gummi-0.1.0
- old
+ new
@@ -15,10 +15,10 @@
@page = page
end
def records
entities = Array(@repository.to_entity_from_db(@db_records)) if @db_records
- Leaflet::Collection.new entities, per_page: @per_page, page: @page, total: total
+ Leaflet::Collection.new entities, page: @page, total: total, per_page: @per_page
end
end
end
end
\ No newline at end of file