super
return nil if self._skip_load?
# Class Methods
- pm = Manifest.manifest.models[self.my_peta.parent_model_name].classify
+ pm = Manifest.manifest.models[self.my_peta.parent_item_name].classify
define_singleton_method("parent_model") do
pm
end
- destm = Manifest.manifest.models[self.my_peta.destination_model_name].classify
+ destm = Manifest.manifest.models[self.my_peta.destination_item_name].classify
define_singleton_method("destination_model") do
destm
end
- pfk = self.my_peta.parent_model_name + '_id'
+ pfk = self.my_peta.parent_item_name + '_id'
define_singleton_method("binder_key") do
pfk
end
- dest_key = if self.my_peta.destination_model_name
- self.my_peta.destination_model_name + '_id'
+ dest_key = if self.my_peta.destination_item_name
+ self.my_peta.destination_item_name + '_id'
else
nil
end