paper_trail v0.1.3 PaperTrail.VersionQueries

Summary

Functions

Gets the current record of a version

Gets the last version of a record

Gets the last version of a record given its module reference and its id

Gets all the versions of a record

Gets all the versions of a record given a module and its id

Functions

get_current(version)

Gets the current record of a version

get_version(record)

Gets the last version of a record

get_version(model, id)

Gets the last version of a record given its module reference and its id

get_versions(record)

Gets all the versions of a record

get_versions(model, id)

Gets all the versions of a record given a module and its id