Class: Fire::NestedModel::DuplicatedIdKeyError

Inherits:
DuplicatedParentPathKeyError show all
Defined in:
lib/model/nested/base.rb

Instance Method Summary collapse

Methods inherited from DuplicatedParentPathKeyError

#initialize

Constructor Details

This class inherits a constructor from Fire::NestedModel::DuplicatedParentPathKeyError

Instance Method Details

#error_message(key, parent) ⇒ Object



124
125
126
# File 'lib/model/nested/base.rb', line 124

def error_message(key, parent)
  "ID Key '#{key}' is duplicated in a Parent Model '#{parent}'. Use 'set_key_id' method to define a specific ID Key"
end