Skip to content

Instantly share code, notes, and snippets.

@abscondment
Created October 29, 2010 06:50
Show Gist options
  • Save abscondment/653039 to your computer and use it in GitHub Desktop.
Save abscondment/653039 to your computer and use it in GitHub Desktop.
# NoSession acts like a session, but doesn't get stored anywhere. Sneaky.
class NoSession < AbstractSession
class << self
def find_session(session_id); end
def create_session(session_id, data={})
new(session_id, data)
end
def delete_all(condition=nil); end
end
def update_session(data); end
def destroy; end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment