Exception: ActsAsApprovable::Error::InvalidOwner

Inherits:
ActsAsApprovable::Error show all
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

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