Sha256: d942cac77d8fa4bf913f955e5de1ac4b49303b937c5ba2888b45ccc6f821116b
Contents?: true
Size: 359 Bytes
Versions: 14
Compression:
Stored size: 359 Bytes
Contents
module C2 class AccessDenied < StandardError attr_reader :action, :subject attr_writer :default_message def initialize(message = nil, subject = nil) @message = message @subject = subject @default_message = "You are not authorized to access this page." end def to_s @message || @default_message end end end
Version data entries
14 entries across 14 versions & 1 rubygems