Class: ErratumResponsum::NothingAccessibleBy

Inherits:
CanCan::AccessDenied
  • Object
show all
Defined in:
lib/erratum_responsum/cancancan.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ NothingAccessibleBy



5
6
7
8
# File 'lib/erratum_responsum/cancancan.rb', line 5

def initialize(model)
  # noinspection RubyArgCount

  super format('You\'re not allowed to access that %<model>s', model: model), nil, model
end