Exception: Switchman::Errors::ManuallyCreatedShadowRecordError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/switchman/errors.rb

Constant Summary collapse

DEFAULT_MSG =
"It looks like you're trying to manually create a shadow record. " \
"Please use Switchman::ActiveRecord::Base#save_shadow_record instead."

Instance Method Summary collapse

Constructor Details

#initialize(msg = DEFAULT_MSG) ⇒ ManuallyCreatedShadowRecordError

Returns a new instance of ManuallyCreatedShadowRecordError.



9
10
11
# File 'lib/switchman/errors.rb', line 9

def initialize(msg = DEFAULT_MSG)
  super
end