backbone.rebar Examples: Persistence Example

The persistence model overwrites the models sync method essentially rerouting the fetch and save methods to local storage. In this example, the persistent data is saved to local storage and the persistence object is written to the console.