]> 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 7fe119fea42d33b238edcc63c6260323dc6a87f2..6a57732963989841c89be951c60d941c52e1aed6 100644 (file)
@@ -6,6 +6,6 @@ module NotRedactable
   end
 
   def redact!(_r)
-    raise OSM::APICannotRedactError.new
+    raise OSM::APICannotRedactError
   end
 end