1 # frozen_string_literal: true
4 extend ActiveSupport::Concern
7 scope :unredacted, -> { where(:redaction_id => nil) }
14 def redact!(redaction)
15 # check that this version isn't the current version
16 raise OSM::APICannotRedactError if latest_version?
19 self.redaction = redaction