Class: PaperTrailScrapbook::JournalEntry Private
- Inherits:
-
Object
- Object
- PaperTrailScrapbook::JournalEntry
- Includes:
- Adamantium::Flat, VersionHelpers
- Defined in:
- lib/paper_trail_scrapbook/journal_entry.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class JournalEntry provides single version history analysis
Instance Method Summary collapse
-
#story ⇒ String
private
Single version historical analysis.
Methods included from VersionHelpers
#changes, #config, #create?, #destroy?, #kind, #model, #model_id, #whenn, #who, #whodunnit_class, #whodunnit_instance
Instance Method Details
#story ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Single version historical analysis
21 22 23 24 25 26 |
# File 'lib/paper_trail_scrapbook/journal_entry.rb', line 21 def story updates = changes return unless create? || updates.present? || !config.filter_non_changes "#{preface}\n#{updates}" end |