]> git.openstreetmap.org Git - rails.git/blobdiff - lib/not_redactable.rb
use a controller method to handle cancan denials
[rails.git] / lib / not_redactable.rb
index d7c952463dcb494096e91821c7a42906613398da..6a57732963989841c89be951c60d941c52e1aed6 100644 (file)
@@ -1,11 +1,11 @@
-require 'osm'
+require "osm"
 
 module NotRedactable
   def redacted?
     false
   end
 
-  def redact!(r)
-    raise OSM::APICannotRedactError.new
+  def redact!(_r)
+    raise OSM::APICannotRedactError
   end
 end