Adds visit_Arel_Nodes_InfixOperation to Arel::Visitors::DepthFirst #112

Merged
merged 1 commit into from Mar 22, 2012

Projects

None yet

2 participants

This pull requests adds an alias for visit_Arel_Nodes_InfixOperation to Arel::Visitors::DepthFirst.

Without this alias there will be a NoMethodError which will mess up the Arel::Visitors::Visitor::DISPATCH in some situations (like Model.some_scope.count in ActiveRecord). As a result subsequent tree traversals involving Arel::Nodes::InfixOperation will fail, too.

@tenderlove tenderlove merged commit b454667 into rails:master Mar 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment