Avoid uninitialized variable warning.

This commit is contained in:
Emilio Tagua 2010-09-24 16:07:17 -03:00
parent 1ed18fcc91
commit 74d7664b60
1 changed files with 1 additions and 0 deletions

View File

@ -923,6 +923,7 @@ module ActionView
private
def datetime_selector(options, html_options)
datetime = value(object) || default_datetime(options)
@auto_index ||= nil
options = options.dup
options[:field_name] = @method_name