Permalink
Browse files

make it initialize properly in rails 3.1

  • Loading branch information...
1 parent b2eb3e8 commit e7c48ec23881ef53a660d2db43e54092ac46a718 @jjb committed Nov 19, 2011
Showing with 3 additions and 4 deletions.
  1. +0 −4 init.rb
  2. +3 −0 lib/fast_sessions.rb
View
@@ -1,4 +0,0 @@
-require File.dirname(__FILE__) + '/lib/ar_helpers'
-require File.dirname(__FILE__) + '/lib/fast_sessions'
-
-ActiveRecord::SessionStore.session_class = ActiveRecord::SessionStore::FastSessions
View
@@ -1,3 +1,5 @@
+require 'ar_helpers'
+
module ActiveRecord
class SessionStore
class FastSessions
@@ -170,3 +172,4 @@ def should_save_session?
end
end
end
+ActiveRecord::SessionStore.session_class = ActiveRecord::SessionStore::FastSessions

0 comments on commit e7c48ec

Please sign in to comment.