Class: Persistors::Base
Overview
Implements the base persistor functionality.
Instance Method Summary collapse
- #added(model) ⇒ Object
- #changed(attribute_name) ⇒ Object
- #event_added(event, scope_provider, first) ⇒ Object
- #event_removed(event, no_more_events) ⇒ Object
- #loaded ⇒ Object
-
#removed(attribute_name) ⇒ Object
For removed, the default action is to call changed for it.
Instance Method Details
#added(model) ⇒ Object
10 11 |
# File 'lib/volt/models/persistors/base.rb', line 10 def added(model) end |
#changed(attribute_name) ⇒ Object
7 8 |
# File 'lib/volt/models/persistors/base.rb', line 7 def changed(attribute_name) end |
#event_added(event, scope_provider, first) ⇒ Object
18 19 |
# File 'lib/volt/models/persistors/base.rb', line 18 def event_added(event, scope_provider, first) end |
#event_removed(event, no_more_events) ⇒ Object
21 22 |
# File 'lib/volt/models/persistors/base.rb', line 21 def event_removed(event, no_more_events) end |
#loaded ⇒ Object
4 5 |
# File 'lib/volt/models/persistors/base.rb', line 4 def loaded end |
#removed(attribute_name) ⇒ Object
For removed, the default action is to call changed for it
14 15 16 |
# File 'lib/volt/models/persistors/base.rb', line 14 def removed(attribute_name) changed(attribute_name) end |