Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Partially merge [5691] from trunk.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 3d5fb40bb053511d583fcfc0e8930439dd057e23 1 parent 0c483d0
@jeremy jeremy authored
View
4 railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.