tags: add /tag_versions page.

This commit is contained in:
evazion
2022-09-11 17:23:53 -05:00
parent 54a45a3021
commit bb728ecebf
11 changed files with 218 additions and 4 deletions

View File

@@ -78,6 +78,11 @@ module VersionFor
previous_version.nil?
end
# True if this version was updated after it was created (it was a merged edit).
def revised?
updated_at > created_at
end
# Return a hash of changes made by this edit (compared to the previous version, or to another version).
#
# The hash looks like `{ attr => [old_value, new_value] }`.