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, -> { base.where(:redaction_id => nil) }
11 not self.redaction.nil?
14 def redact!(redaction)
15 # check that this version isn't the current version
16 raise OSM::APICannotRedactError.new if self.is_latest_version?
19 self.redaction = redaction