Exception: ObjectTracer::NotAnActiveRecordInstanceError
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ObjectTracer::NotAnActiveRecordInstanceError
- Defined in:
- lib/object_tracer/exceptions.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ NotAnActiveRecordInstanceError
constructor
A new instance of NotAnActiveRecordInstanceError.
Constructor Details
#initialize(object) ⇒ NotAnActiveRecordInstanceError
Returns a new instance of NotAnActiveRecordInstanceError.
6 7 8 |
# File 'lib/object_tracer/exceptions.rb', line 6 def initialize(object) super("target object should be an instance of ActiveRecord::Base, got #{object}") end |