datamapper/dm-core — pull request #202 by kalenkov (2012-05-24 21:34:08+00:00)
Title: Fix for Collection#slice incorrect offset adjustments for chained negative offsets

Existing processing of offset does not account for pre-existing query conditions (such as limit and add_reversed?), thus breaking all cases of chained application of #slice where at least one offset is negative.

Tests for such cases added.

This change can be used as a base for chained #last behavior fix (also broken)