OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix spec
[pettanr/pettanr.git]
/
lib
/
local_manifest
/
profiler
/
association
/
belongs_to.rb
1
module LocalManifest
2
module ProfilerModule
3
module AssociationModule
4
class BelongsTo < ManifestBase::Names
5
attr :model_name
6
7
def set_default
8
super
9
end
10
11
def init
12
super
13
@model_name = @name
14
end
15
16
def model
17
::Manifest::item_name_to_model @model_name
18
end
19
20
def association_name
21
@parent.profiler_name
22
end
23
24
end
25
26
end
27
end
28
end