Dynamoid icon indicating copy to clipboard operation
Dynamoid copied to clipboard

Chain#limit() does not return self (was: Transposition in documentation?)

Open TCLoving opened this issue 12 years ago • 1 comments

You give an example:

Address.limit(5).start(address)

To get this to work, I needed to do something like this:

Address.start(address).limit(5)

TCLoving avatar Feb 20 '13 04:02 TCLoving

I edited the title of your bug. The problem is that Chain#limit() (https://github.com/Veraticus/Dynamoid/blob/master/lib/dynamoid/criteria/chain.rb#L115) returns an enumerator of records rather than the chain object itself. It's possibly just a one-line change; if you would like to make it and verify that all the specs still pass, please do submit a Pull Request.

loganb avatar Jun 09 '13 21:06 loganb