ForestAdmin/forest-rails

View on GitHub
app/services/forest_liana/ability/exceptions/trigger_forbidden.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module ForestLiana
  module Ability
    module Exceptions
      class TriggerForbidden < ForestLiana::Errors::ExpectedError
        def initialize
          super(
            403,
                :forbidden,
                'You don\'t have the permission to trigger this action',
                'CustomActionTriggerForbiddenError'
          )
        end
      end
    end
  end
end