Exception: TappingDevice::NotAnActiveRecordInstanceError

Inherits:
Exception
  • Object
show all
Defined in:
lib/tapping_device/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ NotAnActiveRecordInstanceError

Returns a new instance of NotAnActiveRecordInstanceError.



6
7
8
# File 'lib/tapping_device/exceptions.rb', line 6

def initialize(object)
  super("target object should be an instance of ActiveRecord::Base, got #{object}")
end