Class: Volt::Persistors::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/volt/models/persistors/base.rb
Overview
Implements the base persistor functionality.
Instance Method Summary
collapse
Instance Method Details
#added(model, index) ⇒ Object
11
12
|
# File 'lib/volt/models/persistors/base.rb', line 11
def added(model, index)
end
|
#changed(attribute_name) ⇒ Object
8
9
|
# File 'lib/volt/models/persistors/base.rb', line 8
def changed(attribute_name)
end
|
#event_added(event, first, first_for_event) ⇒ Object
19
20
|
# File 'lib/volt/models/persistors/base.rb', line 19
def event_added(event, first, first_for_event)
end
|
#event_removed(event, last, last_for_event) ⇒ Object
22
23
|
# File 'lib/volt/models/persistors/base.rb', line 22
def event_removed(event, last, last_for_event)
end
|
#loaded(initial_state = nil) ⇒ Object
5
6
|
# File 'lib/volt/models/persistors/base.rb', line 5
def loaded(initial_state = nil)
end
|
#removed(attribute_name) ⇒ Object
For removed, the default action is to call changed for it
15
16
17
|
# File 'lib/volt/models/persistors/base.rb', line 15
def removed(attribute_name)
changed(attribute_name)
end
|