Module: Tenon::HasHistory::InstanceMethods
- Defined in:
- lib/tenon/has_history.rb
Instance Method Summary collapse
- #has_history_except ⇒ Object
- #has_history_includes ⇒ Object
- #has_history_only ⇒ Object
- #revert(item_version) ⇒ Object
Instance Method Details
#has_history_except ⇒ Object
22 23 24 |
# File 'lib/tenon/has_history.rb', line 22 def has_history_except self.class.instance_variable_get('@has_history_except') end |
#has_history_includes ⇒ Object
30 31 32 |
# File 'lib/tenon/has_history.rb', line 30 def has_history_includes self.class.instance_variable_get('@has_history_includes') end |
#has_history_only ⇒ Object
26 27 28 |
# File 'lib/tenon/has_history.rb', line 26 def has_history_only self.class.instance_variable_get('@has_history_only') end |
#revert(item_version) ⇒ Object
34 35 36 |
# File 'lib/tenon/has_history.rb', line 34 def revert(item_version) Tenon::HasHistory::ItemReverter.revert(self, item_version) end |