X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..0d7c9a187e23ded9c7500851075868c3c038773b:/lib/redactable.rb diff --git a/lib/redactable.rb b/lib/redactable.rb index a42164ec7..d827cfd74 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 if is_latest_version? # make the change self.redaction = redaction - self.save! + save! end end