diff --git a/lib/active_record/session_store/session.rb b/lib/active_record/session_store/session.rb index aec3253..3ce2c5b 100644 --- a/lib/active_record/session_store/session.rb +++ b/lib/active_record/session_store/session.rb @@ -48,7 +48,7 @@ def self.find_by_session_id(session_id) class << self; remove_possible_method :find_by_session_id; end def self.find_by_session_id(session_id) - where(session_id: session_id).first + where(session_id: session_id).take end end end