提交 ee384b89 编写于 作者: J Jeremy Kemper

Missed commit from [5686].

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 50c98942
......@@ -121,7 +121,6 @@ def mysql_socket_location
app/models
app/views/layouts
config/environments
components
db
doc
lib
......
......@@ -30,6 +30,10 @@ def to_date_select_tag(options = {})
def to_datetime_select_tag(options = {})
"<%= datetime_select '#{@object_name}', '#{@method_name}' #{options.empty? ? '' : ', '+ options.inspect} %>"
end
def to_time_select_tag(options = {})
"<%= time_select '#{@object_name}', '#{@method_name}' #{options.empty? ? '' : ', '+ options.inspect} %>"
end
end
class ScaffoldGenerator < Rails::Generator::NamedBase
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册