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:
parent
34f7d3442e
commit
daa7e829e0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue