提交 4750e61b 编写于 作者: J Jeff Kreeftmeijer 提交者: José Valim

using :time_select when the attribute type is :time in the scaffold generator....

using :time_select when the attribute type is :time in the scaffold generator. [#2377 state:resolved]
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 afe57dda
......@@ -9,12 +9,13 @@ def initialize(name, type)
def field_type
@field_type ||= case type
when :integer, :float, :decimal then :text_field
when :datetime, :timestamp, :time then :datetime_select
when :date then :date_select
when :string then :text_field
when :text then :text_area
when :boolean then :check_box
when :integer, :float, :decimal then :text_field
when :time then :time_select
when :datetime, :timestamp then :datetime_select
when :date then :date_select
when :string then :text_field
when :text then :text_area
when :boolean then :check_box
else
:text_field
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册