aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-06 22:08:59 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-06 22:08:59 +0000
commitee384b89814fd6a1cf2f02951d9626385c43d307 (patch)
tree34eda476a3ed37993d3e39019c05e32814d0cfc6 /railties/lib
parent50c98942a57e44242825bac81790f110a300adab (diff)
downloadrails-ee384b89814fd6a1cf2f02951d9626385c43d307.tar.gz
rails-ee384b89814fd6a1cf2f02951d9626385c43d307.tar.bz2
rails-ee384b89814fd6a1cf2f02951d9626385c43d307.zip
Missed commit from [5686].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails_generator/generators/applications/app/app_generator.rb1
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb4
2 files changed, 4 insertions, 1 deletions
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