Dynamoid
Dynamoid copied to clipboard
Chain#limit() does not return self (was: Transposition in documentation?)
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)
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.