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
30 ::Locmare::Filer.new self.parent_model.item_name, r, nil, self.profiler.operators
34 ::Manifest.manifest.models[self.profiler.item_name]
37 def model_belongs_to_manifest
38 self.model_manifest.associations.belongs_to[@belongs_to_manifest.model_name]