Skip to content

Commit

Permalink
Remove dead code now that attr is not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Dec 29, 2016
1 parent 003d6fe commit b26638e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arel/visitors/to_sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def visit_Arel_Nodes_Values o, collector
collector << "VALUES ("

len = o.expressions.length - 1
o.expressions.zip(o.columns).each_with_index { |(value, attr), i|
o.expressions.each_with_index { |value, i|
case value
when Nodes::SqlLiteral, Nodes::BindParam
collector = visit value, collector
Expand Down

0 comments on commit b26638e

Please sign in to comment.