5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 00:46:23 +00:00
panel/app/policies/nil_class_policy.rb

14 lines
339 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Una política para mostrar un error 404 cuando no se puede encontrar el
# recurso.
#
# @see app/controllers/application_controller.rb
# @see app/controllers/posts_controller.rb
# @see app/controllers/site_controller.rb
class NilClassPolicy
def initialize(_, _)
raise Pundit::NilPolicyError
end
end