When using paginate_by_sql the passed in options hash isn't entirely passed on to the connection adapter, only the offset and limit are. To keep things in line with other find methods that take options hashes I've merged the pagers offset/limit back into the options hash and passed it on.
This isn't really a bug in will_paginate it's more a cleaner way of getting more information down to the sql server connection adapter.
Merge the offset and limit back into the passed in options so the con…
…nection adapater can see all of the options
This is mostly done to support the sqlserver adapter that looks for the order hash member to support limit and offset
Thanks, but if it isn't necessary, I don't feel the need to add it. It works the way it is now.