4 module AssociationModule
6 attr :association, :belongs_to_manifest
7 def initialize association, belongs_to_manifest
8 @association = association
9 @belongs_to_manifest = belongs_to_manifest
17 @belongs_to_manifest.model
21 self.item.attributes[self.model_belongs_to_manifest.id_column]
27 r = self.parent_model.show(self.parent_id, self.profiler.operators)
29 filer = ::Manifest::View::Filer.new self.parent_model.item_name, [r], nil, self.profiler.operators
31 rescue ActiveRecord::RecordNotFound, ActiveRecord::Forbidden
37 ::Manifest.manifest.models[self.profiler.item_name]
40 def model_belongs_to_manifest
41 self.model_manifest.associations.belongs_to[@belongs_to_manifest.model_name]