class Volt::ModelIdentityMap
The identity map ensures that there is only one copy of a model used on the front end at a time.
Public Instance Methods
add(id, model)
click to toggle source
add extends GenericCountingPool
so it can add in a model without a direct lookup. We use this when we create a model (without an id) then save it and it gets assigned an id.
# File lib/volt/models/persistors/model_identity_map.rb, line 10 def add(id, model) @pool[id] = [1, model] end