aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2009-02-06 14:32:03 +1300
committerMichael Koziarski <michael@koziarski.com>2009-02-06 14:32:03 +1300
commit011ea46569a5df1412aecf25fc4ea2e287b0e136 (patch)
tree7404787d4b096a643764fcd3849c919b579577ae /activerecord/lib
parent9991868d85b25da672bf119bfcbff22a4bb6e8f1 (diff)
downloadrails-011ea46569a5df1412aecf25fc4ea2e287b0e136.tar.gz
rails-011ea46569a5df1412aecf25fc4ea2e287b0e136.tar.bz2
rails-011ea46569a5df1412aecf25fc4ea2e287b0e136.zip
Don't use weird attribute_condition methods in AR Session Store
Use the hash condition for find instead.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/session_store.rb2
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 5e45cf65ab..de199d30bf 100644
--- a/activerecord/lib/active_record/session_store.rb
+++ b/activerecord/lib/active_record/session_store.rb
@@ -99,7 +99,7 @@ module ActiveRecord
define_method(:session_id=) { |session_id| self.sessid = session_id }
else
def self.find_by_session_id(session_id)
- find :first, :conditions => ["session_id #{attribute_condition(session_id)}", session_id]
+ find :first, :conditions => {:session_id=>session_id}
end
end
end