public
Rubygem
Fork of sam/dm-more
Description: Extras for DataMapper, including bridges to DataObjects::Migrations and Merb::DataMapper
Homepage: http://datamapper.org
Clone URL: git://github.com/dysinger/dm-more.git
Search Repo:
avoiding an exception when a session_id does not exist but the browser 
thinks it does
Adam French (author)
Thu May 08 15:50:04 -0700 2008
commit  9e8910cc7c6abe103add3616340a72b7d75e312a
tree    9bd57ac21d7272e3cf1ff27bc5035416c4045daf
parent  ecab0d300e9c9543c619661059d67c52e9d24869
...
44
45
46
47
 
48
49
50
...
44
45
46
 
47
48
49
50
0
@@ -44,7 +44,7 @@ module Merb
0
       # If none is found, generates a new session.
0
       def persist(session_id)
0
         if !session_id.blank?
0
- session = self[session_id]
0
+ session = self.first :session_id => session_id
0
         end
0
         unless session
0
           session = generate

Comments

    No one has commented yet.