Module | PaperTrail::VersionConcern |
In: |
lib/paper_trail/version_concern.rb
|
Returns what changed in this version of the item. `ActiveModel::Dirty#changes`. returns `nil` if your `versions` table does not have an `object_changes` text column.
Returns an integer representing the chronological position of the version among its siblings (see `sibling_versions`). The "create" event, for example, has an index of 0. @api public
Restore the item from this version.
Optionally this can also restore all :has_one and :has_many (including has_many :through) associations as they were "at the time", if they are also being versioned by PaperTrail.
Options: