lib/spiderfw/model/query_set.rb in spiderfw-0.6.21 vs lib/spiderfw/model/query_set.rb in spiderfw-0.6.22

- old
+ new

@@ -279,10 +279,10 @@ return pos < total_rows end # Total number of objects that would be returned had the Query no limit. def total_rows - return @total_rows ? @total_rows : @model.mapper.count(@query.condition) + return @total_rows ? @total_rows : (@total_rows = @model.mapper.count(@query.condition)) end # Current number of objects fetched. def current_length @objects.length