lib/active_record/session_store/sql_bypass.rb
# Look up a session by id and deserialize its data if found.
Look up a session by id and deserialize its data if found.
Look up a session by id and deserialize its data if found .
def find_by_session_id(session_id)
          if record = connection.select_one("SELECT #{connection.quote_column_name(data_column)} AS data FROM #{@@table_name} WHERE #{connection.quote_column_name(@@session_id_column)}=#{connection.quote(session_id)}")
            new(:session_id => session_id, :retrieved_by => session_id, :serialized_data => record['data'])
          end
        end
def find_by_session_id ( session_id ) if record = connection . select_one ( "SELECT #{connection.quote_column_name(data_column)} AS data FROM #{@@table_name} WHERE #{connection.quote_column_name(@@session_id_column)}=#{connection.quote(session_id)}" ) new ( :session_id => session_id , :retrieved_by => session_id , :serialized_data => record [ 'data' ] ) end end
Look up a session by id and deserialize its data if found.
Look up a session by id and deserialize its data if found .
session_id