Exception: Embedson::NoParentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/embedson/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(action, klass_name) ⇒ NoParentError

Returns a new instance of NoParentError.



11
12
13
# File 'lib/embedson/exceptions.rb', line 11

def initialize(action, klass_name)
  super("Cannot #{action} embedded #{klass_name} without a parent relation.")
end