Browse files

while using activerecord-sqlserver-adapter 3.1.5 with Rails 3.1 with …

…Arel 2.2.1 we encountered the error

  uninitialized constant Arel::Nodes::Visitors::DepthFirst
apparently Arel was trying to call a relative namespace with
  Visitors::DepthFirst.new(block).accept self
we fixed this by making it call an absolute namespace with
  ::Arel::Visitors::DepthFirst.new(block).accept self
  • Loading branch information...
1 parent 34f7d34 commit daa7e829e0222b8cd977610f13f049b1f0175fd1 Adam H committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/arel/nodes/node.rb
View
2 lib/arel/nodes/node.rb
@@ -39,7 +39,7 @@ def to_sql engine = Table.engine
def each &block
return enum_for(:each) unless block_given?
- Visitors::DepthFirst.new(block).accept self
+ ::Arel::Visitors::DepthFirst.new(block).accept self
end
end
end

0 comments on commit daa7e82

Please sign in to comment.