OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
36f7dd643cd8ed2e6adc0064ec4c1104c635c01f
[pettanr/pettanr.git]
/
lib
/
manifest
/
local
/
view
/
form
/
field
/
tag
/
select.rb
1
module Manifest
2
module View
3
module FormModule
4
module FieldModule
5
module TagModule
6
class SelectTag < Base
7
def template_file_name
8
'select'
9
end
10
11
def select_item_name
12
model = ::Manifest.manifest.models[@field.field_manifest.model_name]
13
attr = model.attributes[@field.field_manifest.column_name]
14
attr.source.select_item_name
15
end
16
17
def items
18
::Manifest.manifest.system_resources.select_items[self.select_item_name]
19
end
20
21
end
22
23
end
24
end
25
end
26
end
27
end