lib/smart_session/sqlite.rb
# delete all sessions meeting a given +condition+. it is the
# caller's responsibility to pass a valid sql condition
delete all sessions meeting a given +condition+. it is the
caller's responsibility to pass a valid sql condition
delete all sessions meeting a given + condition + . it is the caller ' s responsibility to pass a valid sql condition
def delete_all(condition=nil)
        if condition
          session_connection.execute("DELETE FROM #{SmartSession::SqlSession.table_name} WHERE #{condition}")
        else
          session_connection.execute("DELETE FROM #{SmartSession::SqlSession.table_name}")
        end
      end
def delete_all ( condition = nil ) if condition session_connection . execute ( "DELETE FROM #{SmartSession::SqlSession.table_name} WHERE #{condition}" ) else session_connection . execute ( "DELETE FROM #{SmartSession::SqlSession.table_name}" ) end end
delete all sessions meeting a given +condition+.
delete all sessions meeting a given + condition + .
condition