Permalink
Browse files

Merge pull request #2281 from castlerock/remove_warnings_ruby193

remove deprication warning for ruby 1.9.3-head for unused variable
  • Loading branch information...
2 parents bdbf97c + cf3f1c9 commit af6abc6404561770f7109fa4cd62c48e81c33651 @spastorino spastorino committed Jul 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -577,7 +577,7 @@ def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
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

0 comments on commit af6abc6

Please sign in to comment.