]> git.openstreetmap.org Git - rails.git/blob - lib/not_redactable.rb
use a controller method to handle cancan denials
[rails.git] / lib / not_redactable.rb
1 require "osm"
2
3 module NotRedactable
4   def redacted?
5     false
6   end
7
8   def redact!(_r)
9     raise OSM::APICannotRedactError
10   end
11 end