Skip to content
Browse files

Avoid uninitialized variable warning.

  • Loading branch information...
1 parent 1ed18fc commit 74d7664b607a7ca2770c937a832b3339d7bf8203 @miloops miloops committed Sep 24, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_view/helpers/date_helper.rb
View
1 actionpack/lib/action_view/helpers/date_helper.rb
@@ -923,6 +923,7 @@ def to_datetime_select_tag(options = {}, html_options = {})
private
def datetime_selector(options, html_options)
datetime = value(object) || default_datetime(options)
+ @auto_index ||= nil
options = options.dup
options[:field_name] = @method_name

0 comments on commit 74d7664

Please sign in to comment.
Something went wrong with that request. Please try again.