aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorJoe Van Dyk <joe@fixieconsulting.com>2012-01-24 10:30:46 -0800
committerAlexey Vakhov <vakhov@gmail.com>2012-03-28 23:06:52 +0400
commitb9cbadf1e30f8b6a94925108572358b32d37d351 (patch)
tree6993806512271eeab783117124d621088d6c4037 /actionpack/lib/action_view
parentdd0275e46314b6c4cddb1ae438ce1390d13aa53c (diff)
downloadrails-b9cbadf1e30f8b6a94925108572358b32d37d351.tar.gz
rails-b9cbadf1e30f8b6a94925108572358b32d37d351.tar.bz2
rails-b9cbadf1e30f8b6a94925108572358b32d37d351.zip
datetime_select should work with -/+ infinity dates
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index 45e5a862b6..cb46f26d99 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -795,7 +795,7 @@ module ActionView
private
%w( sec min hour day month year ).each do |method|
define_method(method) do
- @datetime.kind_of?(Fixnum) ? @datetime : @datetime.send(method) if @datetime
+ @datetime.kind_of?(Numeric) ? @datetime : @datetime.send(method) if @datetime
end
end