Class: Waylon::Routes::PermissionDenied
- Inherits:
-
Waylon::Route
- Object
- Waylon::Route
- Waylon::Routes::PermissionDenied
- Defined in:
- lib/waylon/routes/permission_denied.rb
Overview
This route is used when a route exists but the current user doesn’t have permission
Instance Attribute Summary
Attributes inherited from Waylon::Route
#condition, #destination, #name, #priority
Instance Method Summary collapse
-
#initialize(name: "permission_denied", destination: Skills::Default, condition: Conditions::PermissionDenied.new, priority: 99) ⇒ PermissionDenied
constructor
A new instance of PermissionDenied.
Constructor Details
#initialize(name: "permission_denied", destination: Skills::Default, condition: Conditions::PermissionDenied.new, priority: 99) ⇒ PermissionDenied
Returns a new instance of PermissionDenied.
7 8 9 10 11 12 13 14 |
# File 'lib/waylon/routes/permission_denied.rb', line 7 def initialize( name: "permission_denied", destination: Skills::Default, condition: Conditions::PermissionDenied.new, priority: 99 ) super end |