voltrb / volt

A Ruby web framework where your Ruby runs on both server and client
MIT License
3.22k stars 196 forks source link

added session_store to supplement local_store #330

Open balmoral opened 8 years ago

balmoral commented 8 years ago

CHANGES

Added session_store to provide access to html sessionStorage, in the same way local_store does to html localStorage.

Two new base classes have been implemented to minimize code replication:

  1. Volt::HtmlStorage in volt/lib/volt/utils -- inherited by LocalStorage and SessionStorage
  2. Volt::Persistors::HtmlStore in volt/lib/volt/models/persistors -- inherited by LocalStore and SessionStore

Other changes made as required to initialize and provide access to session_store.

TODO

  1. full testing
  2. documentation