diff options
author | Joe Van Dyk <joe@fixieconsulting.com> | 2012-01-24 10:30:46 -0800 |
---|---|---|
committer | Joe Van Dyk <joe@fixieconsulting.com> | 2012-01-24 10:30:46 -0800 |
commit | 59a408eb64729909aca15ef59291aea2cef951e2 (patch) | |
tree | e970fc047c6cd7a4fb682af8df53a0843b2e05db /actionpack/lib | |
parent | dc826f9977650c105e9bfd308d6d4fc71bb6ec6e (diff) | |
download | rails-59a408eb64729909aca15ef59291aea2cef951e2.tar.gz rails-59a408eb64729909aca15ef59291aea2cef951e2.tar.bz2 rails-59a408eb64729909aca15ef59291aea2cef951e2.zip |
datetime_select should work with -/+ infinity dates
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/date_helper.rb | 2 |
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 2806348337..ad8dfc9e5e 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -783,7 +783,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 |