OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
t#:
[pettanr/pettanr.git]
/
lib
/
manifest
/
list
/
public.rb
1
module Manifest
2
module ListModule
3
class PublicList < Base
4
5
def set_default
6
super
7
end
8
9
def init
10
super
11
end
12
13
def where
14
@model.list_where
15
end
16
17
def includes
18
if @owner_model
19
if @owner_model.owner_model
20
{@owner_model.item_name => {@owner_model.owner_model.item_name => {}}}
21
else
22
{@owner_model.item_name => {}}
23
end
24
else
25
{}
26
end
27
end
28
29
def order
30
@model.list_order
31
end
32
end
33
34
end
35
end