1 require_dependency "manifest/local/view/profiler/association/belongs_to"
2 require_dependency "manifest/local/view/profiler/association/has_many"
3 require_dependency "manifest/local/view/profiler/association/has_one"
8 include AssociationModule
9 attr :profiler, :association_manifest,
10 :belongs_to, :has_many, :has_one
11 def initialize profiler, association_manifest
13 @association_manifest = association_manifest
14 @belongs_to = @association_manifest.belongs_to.map {|belongs_to_manifest|
15 BelongsTo.new self, belongs_to_manifest
17 @has_many = @association_manifest.has_many.map {|list_name|
18 HasMany.new self, list_name
20 @has_one = @association_manifest.has_one.map {|list_name|
21 HasOne.new self, list_name
30 ::Manifest.manifest.models[@profiler.item_name]
33 def model_attribute_manifest
34 model_manifest.attributes[@column_name]
38 @profiler.template_dir
41 def template_file_name
46 self.template_dir + self.template_file_name
49 def each_belongs_to_filer
55 def each_has_many_filer
61 def each_has_one_filer