4 def self.included(base)
5 # this is used to extend activerecord bases, as these aren't
6 # in scope for the module itself.
7 base.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 is_latest_version?
19 self.redaction = redaction