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:
parent
50c98942a5
commit
ee384b8981
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue