Setting max_versions doesn't limit no. of revisions

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Gurpartap [X]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: