It's better to explain this in pseudo-code, I want to do this:
limit_object = Model.first(id: bla)
objects = Model.all(constraint: limit_object, limit: 30)
If the objects are:
[a, b, c, d, e, f, g]
and limit_object
is 'c', it should return:
[a, b, c]
Is there a way to do this in DataMapper?