diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-24 16:07:17 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:23 -0300 |
commit | 74d7664b607a7ca2770c937a832b3339d7bf8203 (patch) | |
tree | 42e26af93d5abe6632cc2f60e16595917a276af3 /actionpack/lib/action_view/helpers | |
parent | 1ed18fcc91e8e908f26291f6ec9ffbd61e48195f (diff) | |
download | rails-74d7664b607a7ca2770c937a832b3339d7bf8203.tar.gz rails-74d7664b607a7ca2770c937a832b3339d7bf8203.tar.bz2 rails-74d7664b607a7ca2770c937a832b3339d7bf8203.zip |
Avoid uninitialized variable warning.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/date_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index 9891478606..3aee4fb773 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -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 |