3 module AssociationModule
5 attr :association, :belongs_to_manifest
6 def initialize association, belongs_to_manifest
7 @association = association
8 @belongs_to_manifest = belongs_to_manifest
16 @belongs_to_manifest.model
20 self.item.attributes[self.model_belongs_to_manifest.id_column]
26 r = [self.parent_model.show(self.parent_id, self.profiler.operators)]
27 rescue ActiveRecord::RecordNotFound, ActiveRecord::Forbidden
31 self.parent_model.item_name, r,
32 nil, self.profiler.operators
37 ::Manifest.manifest.models[self.profiler.item_name]
40 def model_belongs_to_manifest
41 self.model_manifest.associations.belongs_to[@belongs_to_manifest.item_name]