1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't use weird attribute_condition methods in AR Session Store

Use the hash condition for find instead.
This commit is contained in:
Michael Koziarski 2009-02-06 14:32:03 +13:00
parent 9991868d85
commit 011ea46569

View file

@ -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