OSDN Git Service

merge
[pettanr/pettanr.git] / lib / local_manifest / profiler / association / belongs_to.rb
1 module LocalManifest
2   module ProfilerModule
3     module AssociationModule
4       class BelongsTo
5         attr :association, :model_name
6         def initialize association, model_name
7           @association = association
8           @model_name = model_name
9           self.set_default
10           self.init
11         end
12         
13         def set_default
14         end
15         
16         def init
17         end
18         
19         def model
20           ::Manifest::item_name_to_model @model_name
21         end
22         
23         def association_name
24           @association.association_name
25         end
26         
27       end
28       
29     end
30   end
31 end