mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 18:36:21 +00:00
14 lines
339 B
Ruby
14 lines
339 B
Ruby
|
# 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
|