mirror of https://github.com/rails/rails
Avoid uninitialized variable warning.
This commit is contained in:
parent
1ed18fcc91
commit
74d7664b60
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue