diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-06 22:08:59 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-06 22:08:59 +0000 |
commit | ee384b89814fd6a1cf2f02951d9626385c43d307 (patch) | |
tree | 34eda476a3ed37993d3e39019c05e32814d0cfc6 /railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb | |
parent | 50c98942a57e44242825bac81790f110a300adab (diff) | |
download | rails-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/rails_generator/generators/components/scaffold/scaffold_generator.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |