datamapper/dm-rails — pull request #28 by d11wtq (2011-10-20 07:22:42+00:00)
Title: Fix incomaptibility with number of arguments in Rails 3.1 vs 3.0

This fixes the session store in Rails 3.1, as reported by this user:

http://stackoverflow.com/questions/7831431/sessions-with-datamapper-dont-work-due-to-an-argumenterror?utm_source=twitterfeed&utm_medium=twitter

We ran into the same issue with our own custom session store and I never thought to check if DM's was affected. Rails 3.1 passed extra options parameters into some methods in the session store, which cause an ArgumentError.