X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..12cdc58688e372b69abaea98cdc0090716ff0d36:/lib/redactable.rb diff --git a/lib/redactable.rb b/lib/redactable.rb index c46b32737..d827cfd74 100644 --- a/lib/redactable.rb +++ b/lib/redactable.rb @@ -1,4 +1,4 @@ -require 'osm' +require "osm" module Redactable def self.included(base) @@ -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