deny is a simple DSL for doing authorizations in Ruby on Rails controllers. It follows the principle of default deny: all requests are denied unless explicitly permitted.
First, include the Deny
module to your ApplicationController
. This sets up
the controller to deny all requests made.