Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9 compat: date helper

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 1f98bf101a6093ea4b3f1f49c27ba3234376df6b 1 parent 5c4469f
@jeremy jeremy authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/lib/action_view/helpers/date_helper.rb
View
12 actionpack/lib/action_view/helpers/date_helper.rb
@@ -341,7 +341,7 @@ def select_second(datetime, options = {})
%(<option value="#{leading_zero_on_single_digits(second)}">#{leading_zero_on_single_digits(second)}</option>\n)
)
end
- select_html(options[:field_name] || 'second', second_options, options)
+ select_html(options[:field_name] || 'second', second_options.join, options)
end
end
@@ -375,7 +375,7 @@ def select_minute(datetime, options = {})
%(<option value="#{leading_zero_on_single_digits(minute)}">#{leading_zero_on_single_digits(minute)}</option>\n)
)
end
- select_html(options[:field_name] || 'minute', minute_options, options)
+ select_html(options[:field_name] || 'minute', minute_options.join, options)
end
end
@@ -408,7 +408,7 @@ def select_hour(datetime, options = {})
%(<option value="#{leading_zero_on_single_digits(hour)}">#{leading_zero_on_single_digits(hour)}</option>\n)
)
end
- select_html(options[:field_name] || 'hour', hour_options, options)
+ select_html(options[:field_name] || 'hour', hour_options.join, options)
end
end
@@ -441,7 +441,7 @@ def select_day(date, options = {})
%(<option value="#{day}">#{day}</option>\n)
)
end
- select_html(options[:field_name] || 'day', day_options, options)
+ select_html(options[:field_name] || 'day', day_options.join, options)
end
end
@@ -501,7 +501,7 @@ def select_month(date, options = {})
%(<option value="#{month_number}">#{month_name}</option>\n)
)
end
- select_html(options[:field_name] || 'month', month_options, options)
+ select_html(options[:field_name] || 'month', month_options.join, options)
end
end
@@ -543,7 +543,7 @@ def select_year(date, options = {})
%(<option value="#{year}">#{year}</option>\n)
)
end
- select_html(options[:field_name] || 'year', year_options, options)
+ select_html(options[:field_name] || 'year', year_options.join, options)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.