3 module AssociationModule
5 attr :association, :profiler_list_name,
6 :model_name, :list_name, :list
7 def initialize association, profiler_list_name
8 @association = association
9 @profiler_list_name = profiler_list_name
18 if list_manifest = self.profiler.lists[@profiler_list_name]
19 @model_name = list_manifest.model_name
20 @list_name = list_manifest.list_name
22 n = @profiler_list_name.split '.'
27 raise "undefined list for profilers > #{self.profiler.item_name} > lists > #{@my_name}\n" unless @list_manifest['model_name']
30 @my_list = ::Manifest.manifest.lists[@model_name]
31 raise "undefined my_list for profilers > #{self.profiler.item_name} > lists > #{@my_name} ... #{@model_name}\n" unless @my_list
32 @list = @my_list[@list_name]
33 raise "undefined list for profilers > #{self.profiler.item_name} > lists > #{@my_name} ... #{@list_name}\n" unless @list
37 ::Manifest::item_name_to_model @model_name
41 @association.association_name
49 @association.profiler_manifest