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:
parent
9991868d85
commit
011ea46569
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue