diff options
author | Luca Guidi <guidi.luca@gmail.com> | 2009-03-31 16:39:13 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-04-05 21:00:50 +1200 |
commit | 42cdc7571d115c5eb4ece440001d221f24553100 (patch) | |
tree | f11f4cc5861d95ca8ff3621305e428f946481727 /activerecord | |
parent | 0e9efae4745e232b1c778fda69ee110e42a223a7 (diff) | |
download | rails-42cdc7571d115c5eb4ece440001d221f24553100.tar.gz rails-42cdc7571d115c5eb4ece440001d221f24553100.tar.bz2 rails-42cdc7571d115c5eb4ece440001d221f24553100.zip |
Ensure SqlBypass use ActiveRecord::Base connection
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#https://rails.lighthouseapp.com/attachments/106066/0001-Ensure-SqlBypass-use-ActiveRecord-Base-connection.patch state:committed]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/session_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb index 3cc4640f42..8fc5c9e7a6 100644 --- a/activerecord/lib/active_record/session_store.rb +++ b/activerecord/lib/active_record/session_store.rb @@ -184,7 +184,7 @@ module ActiveRecord # Look up a session by id and unmarshal its data if found. def find_by_session_id(session_id) - if record = @@connection.select_one("SELECT * FROM #{@@table_name} WHERE #{@@session_id_column}=#{@@connection.quote(session_id)}") + if record = connection.select_one("SELECT * FROM #{@@table_name} WHERE #{@@session_id_column}=#{connection.quote(session_id)}") new(:session_id => session_id, :marshaled_data => record['data']) end end |