X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..6b6d922239e6b2d0c40181aa3ab8e5bd438aebe3:/lib/redactable.rb diff --git a/lib/redactable.rb b/lib/redactable.rb index a42164ec7..6adfec72a 100644 --- a/lib/redactable.rb +++ b/lib/redactable.rb @@ -13,10 +13,10 @@ module Redactable def redact!(redaction) # check that this version isn't the current version - fail OSM::APICannotRedactError.new if self.is_latest_version? + raise OSM::APICannotRedactError.new if is_latest_version? # make the change self.redaction = redaction - self.save! + save! end end