Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1288

Setting max_versions doesn't limit no. of revisions

      In the latest stable as well as source version, setting max_versions for a class doesn't restrict revisions saved in db to the specified count.

      versions.shift if version_max.present? && versions.length > version_max

      This seems correct. However, when saved, there are all the versions (never actually "shifted").

      Could it be something to do with putting versions under exception in only_versioned_attributes?

            Assignee:
            Unassigned Unassigned
            Reporter:
            Gurpartap Gurpartap [X]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: