1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Missed commit from [5686].

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2006-12-06 22:08:59 +00:00
parent 50c98942a5
commit ee384b8981
2 changed files with 4 additions and 1 deletions

View file

@ -121,7 +121,6 @@ class AppGenerator < Rails::Generator::Base
app/models app/models
app/views/layouts app/views/layouts
config/environments config/environments
components
db db
doc doc
lib lib

View file

@ -30,6 +30,10 @@ class ActionView::Helpers::InstanceTag
def to_datetime_select_tag(options = {}) def to_datetime_select_tag(options = {})
"<%= datetime_select '#{@object_name}', '#{@method_name}' #{options.empty? ? '' : ', '+ options.inspect} %>" "<%= datetime_select '#{@object_name}', '#{@method_name}' #{options.empty? ? '' : ', '+ options.inspect} %>"
end end
def to_time_select_tag(options = {})
"<%= time_select '#{@object_name}', '#{@method_name}' #{options.empty? ? '' : ', '+ options.inspect} %>"
end
end end
class ScaffoldGenerator < Rails::Generator::NamedBase class ScaffoldGenerator < Rails::Generator::NamedBase