Sha256: cfd15677f6df96aa0e780dffc21ac2a1b50bd8ccfb012363046a3f9547159f2b
Contents?: true
Size: 264 Bytes
Versions: 4
Compression:
Stored size: 264 Bytes
Contents
class Defaults::ForbiddenView < BaseView def template_data { template: 'defaults/forbidden', locals: { error: view_data.errors.first || "You're not authorized to do this" } } end def default_status :forbidden end end
Version data entries
4 entries across 4 versions & 1 rubygems