Class: Denied::Gatekeeper

Inherits:
Object
  • Object
show all
Defined in:
lib/denied/gatekeeper.rb

Instance Method Summary collapse

Instance Method Details

#eye(controller) ⇒ Object



3
4
5
6
# File 'lib/denied/gatekeeper.rb', line 3

def eye(controller)
  restriction = current_restriction(controller)
  restriction and handle_restriction(restriction, controller)
end