Sha256: 6699f82198896121cef2ec9e10f4fc86c6da99e7b8a9f8a04a028c803170c88d
Contents?: true
Size: 844 Bytes
Versions: 11
Compression:
Stored size: 844 Bytes
Contents
module ActsAsApprovable class Error < RuntimeError ## # Raised when a locked approval is accepted or rejected. class Locked < ActsAsApprovable::Error def initialize(*args) args[0] = 'this approval is locked' super(*args) end end ## # Raised when a stale approval is accepted. class Stale < ActsAsApprovable::Error def initialize(*args) args[0] = 'this approval is stale and should not be approved' super(*args) end end ## # Raised when a record is assigned as owner that is not found in # {ActsAsApprovable::Ownership::ClassMethods#available_owners}. class InvalidOwner < ActsAsApprovable::Error def initialize(*args) args[0] = 'this record cannot be assigned as an owner' super(*args) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems