提交 0b86ac24 编写于 作者: S Sebastian Martinez

Remove unused 'quoted_column_names' variable.

上级 54b0aeba
...@@ -707,7 +707,7 @@ def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key) ...@@ -707,7 +707,7 @@ def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
def quoted_columns_for_index(column_names, options = {}) def quoted_columns_for_index(column_names, options = {})
length = options[:length] if options.is_a?(Hash) length = options[:length] if options.is_a?(Hash)
quoted_column_names = case length case length
when Hash when Hash
column_names.map {|name| length[name] ? "#{quote_column_name(name)}(#{length[name]})" : quote_column_name(name) } column_names.map {|name| length[name] ? "#{quote_column_name(name)}(#{length[name]})" : quote_column_name(name) }
when Fixnum when Fixnum
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册