diff options
author | Vishnu Atrai <me@vishnuatrai.com> | 2011-07-26 22:33:23 +0530 |
---|---|---|
committer | Vishnu Atrai <me@vishnuatrai.com> | 2011-07-26 22:33:23 +0530 |
commit | cf3f1c9ba8d7c663fedb9fad9895dea5c7675c1c (patch) | |
tree | 2ed35e819df31d0ff46ab0cfa306955b2eaddf56 /activerecord/lib/active_record | |
parent | bdbf97c23b4e1cceea9e814c40696fd7fafce642 (diff) | |
download | rails-cf3f1c9ba8d7c663fedb9fad9895dea5c7675c1c.tar.gz rails-cf3f1c9ba8d7c663fedb9fad9895dea5c7675c1c.tar.bz2 rails-cf3f1c9ba8d7c663fedb9fad9895dea5c7675c1c.zip |
remove deprication warning for ruby 1.9.3-head for unused variables
Diffstat (limited to 'activerecord/lib/active_record')
-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 |