Method: Mongoid::Threaded#delete

Defined in:
lib/mongoid/threaded.rb

#delete(key) ⇒ Object

Removes the named variable from local storage.

Parameters:

  • key (String | Symbol)

    the name of the variable to remove.



102
103
104
# File 'lib/mongoid/threaded.rb', line 102

def delete(key)
  storage.delete(key)
end