Sha256: abf433def044c6b91d12620a2e9430ff9b466aba188712e556d399d8ace14d88
Contents?: true
Size: 340 Bytes
Versions: 20
Compression:
Stored size: 340 Bytes
Contents
module Authority class SecurityViolation < StandardError attr_reader :user, :action, :resource def initialize(user, action, resource) @user = user @action = action @resource = resource end def message "#{@user} is not authorized to #{@action} this resource: #{@resource}" end end end
Version data entries
20 entries across 20 versions & 1 rubygems