Permalink
Browse files

Don't use weird attribute_condition methods in AR Session Store

Use the hash condition for find instead.
  • Loading branch information...
NZKoz committed Feb 6, 2009
1 parent 9991868 commit 011ea46569a5df1412aecf25fc4ea2e287b0e136
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/session_store.rb
@@ -99,7 +99,7 @@ def self.find_by_session_id(*args)
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

0 comments on commit 011ea46

Please sign in to comment.