]> git.openstreetmap.org Git - rails.git/blobdiff - lib/redactable.rb
Fix rubocop style issues
[rails.git] / lib / redactable.rb
index 620b2196eeaea663af4774cedb5e783385cff1b4..c46b32737de1a3b79a9947dcaef6034cf84be06d 100644 (file)
@@ -6,14 +6,14 @@ module Redactable
     # in scope for the module itself.
     base.scope :unredacted, -> { base.where(:redaction_id => nil) }
   end
-  
+
   def redacted?
-    not self.redaction.nil?
+    !redaction.nil?
   end
 
   def redact!(redaction)
     # check that this version isn't the current version
-    raise OSM::APICannotRedactError.new if self.is_latest_version?
+    fail OSM::APICannotRedactError.new if self.is_latest_version?
 
     # make the change
     self.redaction = redaction