mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ruby 1.9 compat: date helper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
5c4469f3a8
commit
1f98bf101a
1 changed files with 6 additions and 6 deletions
|
@ -341,7 +341,7 @@ module ActionView
|
||||||
%(<option value="#{leading_zero_on_single_digits(second)}">#{leading_zero_on_single_digits(second)}</option>\n)
|
%(<option value="#{leading_zero_on_single_digits(second)}">#{leading_zero_on_single_digits(second)}</option>\n)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
select_html(options[:field_name] || 'second', second_options, options)
|
select_html(options[:field_name] || 'second', second_options.join, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ module ActionView
|
||||||
%(<option value="#{leading_zero_on_single_digits(minute)}">#{leading_zero_on_single_digits(minute)}</option>\n)
|
%(<option value="#{leading_zero_on_single_digits(minute)}">#{leading_zero_on_single_digits(minute)}</option>\n)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
select_html(options[:field_name] || 'minute', minute_options, options)
|
select_html(options[:field_name] || 'minute', minute_options.join, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -408,7 +408,7 @@ module ActionView
|
||||||
%(<option value="#{leading_zero_on_single_digits(hour)}">#{leading_zero_on_single_digits(hour)}</option>\n)
|
%(<option value="#{leading_zero_on_single_digits(hour)}">#{leading_zero_on_single_digits(hour)}</option>\n)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
select_html(options[:field_name] || 'hour', hour_options, options)
|
select_html(options[:field_name] || 'hour', hour_options.join, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@ module ActionView
|
||||||
%(<option value="#{day}">#{day}</option>\n)
|
%(<option value="#{day}">#{day}</option>\n)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
select_html(options[:field_name] || 'day', day_options, options)
|
select_html(options[:field_name] || 'day', day_options.join, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ module ActionView
|
||||||
%(<option value="#{month_number}">#{month_name}</option>\n)
|
%(<option value="#{month_number}">#{month_name}</option>\n)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
select_html(options[:field_name] || 'month', month_options, options)
|
select_html(options[:field_name] || 'month', month_options.join, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -543,7 +543,7 @@ module ActionView
|
||||||
%(<option value="#{year}">#{year}</option>\n)
|
%(<option value="#{year}">#{year}</option>\n)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
select_html(options[:field_name] || 'year', year_options, options)
|
select_html(options[:field_name] || 'year', year_options.join, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue