From ee384b89814fd6a1cf2f02951d9626385c43d307 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 6 Dec 2006 22:08:59 +0000 Subject: [PATCH] Missed commit from [5686]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../generators/applications/app/app_generator.rb | 1 - .../generators/components/scaffold/scaffold_generator.rb | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 584aa0cda3..4c8ffc7502 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -121,7 +121,6 @@ class AppGenerator < Rails::Generator::Base app/models app/views/layouts config/environments - components db doc lib diff --git a/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb b/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb index 086082c722..759850f6bf 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +++ b/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb @@ -30,6 +30,10 @@ class ActionView::Helpers::InstanceTag 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