palkan / logidze

Database changes log for Rails
MIT License
1.59k stars 74 forks source link

Add retrieving list of versions support #238

Closed tagirahmad closed 1 year ago

tagirahmad commented 1 year ago

What is the purpose of this pull request?

Add retrieving list of versions support

What changes did you make? (overview)

Added #logidze_versions method which retrieves list of versions of model depending on options provided (reverse and include_self

If reverse is provided, reversed Enumerator will be returned.

If include_self is provided, the list will contain also current version of the model.

Is there anything you'd like reviewers to focus on?

Checklist

tagirahmad commented 1 year ago

Is it ok, @palkan?

palkan commented 1 year ago

LGTM 👍 Let's add a changelog entry and update the docs.

palkan commented 1 year ago

Thanks!