Module: Logidze::Model::ClassMethods
- Defined in:
- lib/logidze/model.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#at(ts) ⇒ Object
Return records reverted to specified time.
-
#diff_from(ts) ⇒ Object
Return changes made to records since specified time.
-
#without_logging(&block) ⇒ Object
Alias for Logidze.without_logging.
Instance Method Details
#at(ts) ⇒ Object
Return records reverted to specified time
23 24 25 |
# File 'lib/logidze/model.rb', line 23 def at(ts) all.map { |record| record.at(ts) }.compact end |
#diff_from(ts) ⇒ Object
Return changes made to records since specified time
28 29 30 |
# File 'lib/logidze/model.rb', line 28 def diff_from(ts) all.map { |record| record.diff_from(ts) } end |
#without_logging(&block) ⇒ Object
Alias for Logidze.without_logging
33 34 35 |
# File 'lib/logidze/model.rb', line 33 def without_logging(&block) Logidze.without_logging(&block) end |