X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0a33c66146f14e3f49dac74eff9468578a5776c0..973d62a25ebf22bf80663a8b6996f0dbe7d5289f:/app/models/concerns/redactable.rb?ds=sidebyside diff --git a/app/models/concerns/redactable.rb b/app/models/concerns/redactable.rb index ccf04907f..3a1ccf8b7 100644 --- a/app/models/concerns/redactable.rb +++ b/app/models/concerns/redactable.rb @@ -11,7 +11,7 @@ module Redactable def redact!(redaction) # check that this version isn't the current version - raise OSM::APICannotRedactError if is_latest_version? + raise OSM::APICannotRedactError if latest_version? # make the change self.redaction = redaction