1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Adam H 2012-01-20 10:10:09 -05:00
parent 34f7d3442e
commit daa7e829e0

View file

@ -39,7 +39,7 @@ module Arel
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