Class: Fire::NestedModel::DuplicatedParentPathKeyError

Inherits:
InvalidPathKeyError
  • Object
show all
Defined in:
lib/model/nested/nested_model.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, parent) ⇒ DuplicatedParentPathKeyError

Returns a new instance of DuplicatedParentPathKeyError.



51
52
53
54
# File 'lib/model/nested/nested_model.rb', line 51

def initialize(key, parent)
  message = "Key '#{key}' is duplicated in a Parent Model '#{parent}'"
  super(key, message)
end