diff options
author | Vishnu Atrai <me@vishnuatrai.com> | 2011-07-26 22:33:23 +0530 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:17 -0700 |
commit | 5a92c6627e02fc2e40a4c4a578e7aab7324af5fe (patch) | |
tree | 6ca82ca0a0d8f09abf81df3d0fdcb7a81ec4dcae /activerecord/lib | |
parent | 838ec4b64545ea49817166ba6a4988c846ecf089 (diff) | |
download | rails-5a92c6627e02fc2e40a4c4a578e7aab7324af5fe.tar.gz rails-5a92c6627e02fc2e40a4c4a578e7aab7324af5fe.tar.bz2 rails-5a92c6627e02fc2e40a4c4a578e7aab7324af5fe.zip |
remove deprication warning for ruby 1.9.3-head for unused variables
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb index d6c167ad36..f9602bbe77 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -577,7 +577,7 @@ module ActiveRecord def quoted_columns_for_index(column_names, options = {}) length = options[:length] if options.is_a?(Hash) - quoted_column_names = case length + case length when Hash column_names.map {|name| length[name] ? "#{quote_column_name(name)}(#{length[name]})" : quote_column_name(name) } when Fixnum |