Sha256: f33a434d0428c20d7c3df08f5b6bdcf350702e869d3706c3d704c38c3beacf62
Contents?: true
Size: 779 Bytes
Versions: 10
Compression:
Stored size: 779 Bytes
Contents
module Volt module Persistors # Implements the base persistor functionality. class Base def loaded(initial_state = nil) end def changed(attribute_name) end def added(model, index) end # For removed, the default action is to call changed for it def removed(attribute_name) changed(attribute_name) end def event_added(event, first, first_for_event) end def event_removed(event, last, last_for_event) end # Find the root for this model def root_model node = @model loop do parent = node.parent if parent node = parent else break end end node end end end end
Version data entries
10 entries across 10 versions & 1 rubygems