OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
merge
[pettanr/pettanr.git]
/
lib
/
local_manifest
/
list_group
/
list
/
where
/
auto.rb
1
module LocalManifest
2
module ListGroupModule
3
module ListModule
4
module WhereModule
5
class WhereAuto < Base
6
def set_default
7
super
8
end
9
10
def init
11
super
12
end
13
14
def method_name
15
if self.model.content?
16
'public_list_where'
17
else
18
'list_where'
19
end
20
end
21
22
def conditions
23
yield self.method_name
24
end
25
26
end
27
28
end
29
end
30
end
31
end