class Minican::AccessDenied
Public Class Methods
new(policy)
click to toggle source
This is raised when a policy fails in a controller via {Minican::ControllerAdditions}
@param [policy] The policy that authorized it
# File lib/minican/access_denied.rb, line 7 def initialize(policy) @policy = policy end
Public Instance Methods
to_s()
click to toggle source
Human readable error message
# File lib/minican/access_denied.rb, line 12 def to_s 'You are not authorized to access this page' end