Exception: ActsAsApprovable::Error::InvalidOwner
- Inherits:
-
ActsAsApprovable::Error
- Object
- RuntimeError
- ActsAsApprovable::Error
- ActsAsApprovable::Error::InvalidOwner
- Defined in:
- lib/acts_as_approvable/error.rb
Overview
Raised when a record is assigned as owner that is not found in Ownership::ClassMethods#available_owners.
Instance Method Summary collapse
-
#initialize(*args) ⇒ InvalidOwner
constructor
A new instance of InvalidOwner.
Constructor Details
#initialize(*args) ⇒ InvalidOwner
Returns a new instance of InvalidOwner.
23 24 25 |
# File 'lib/acts_as_approvable/error.rb', line 23 def initialize(*args) super('this record cannot be assigned as an owner') end |