Exception: ExplicitActiveRecord::Persistence::InvalidInstanceOfClassError

Inherits:
ArgumentError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/explicit_activerecord/persistence.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, instances) ⇒ InvalidInstanceOfClassError

Returns a new instance of InvalidInstanceOfClassError.



26
27
28
# File 'lib/explicit_activerecord/persistence.rb', line 26

def initialize(klass, instances)
  super "The provided instances of (#{instances.map(&:class).to_sentence}) are not an instance of the class (#{klass}) extending this concern."
end