class OldNode < ApplicationRecord
include GeoRecord
- include ConsistencyValidations
self.table_name = "nodes"
- self.primary_keys = "node_id", "version"
# NOTE: this needs to be included after the table name changes, or
# the queries generated by Redactable will use the wrong table name.
attr_writer :tags
- def tags_as_hash
- tags
- end
-
# Pretend we're not in any ways
def ways
[]
# check whether this element is the latest version - that is,
# has the same version as its "current" counterpart.
- def is_latest_version?
+ def latest_version?
current_node.version == version
end
end