OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
manifest list mg
[pettanr/pettanr.git]
/
lib
/
manifest
/
list
/
includes
/
method.rb
1
module Manifest
2
module ListModule
3
module IncludeModule
4
class IncludeMethod < Base
5
attr :method_name
6
def set_default
7
super
8
@includes_manifest['args']['method_name'] ||= self.list_name + '_list_includes'
9
end
10
11
def init
12
super
13
@method_name = @args['method_name']
14
end
15
16
def includes
17
self.model.__send__ @method_name
18
end
19
20
end
21
22
end
23
end
24
end