aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAdam H <adam@ol5279.olcc.lan>2012-01-20 10:10:09 -0500
committerAdam H <adam@ol5279.olcc.lan>2012-01-20 10:10:09 -0500
commitdaa7e829e0222b8cd977610f13f049b1f0175fd1 (patch)
tree128aca6ef824ced071b2b972891f9828697ccc02 /lib/arel
parent34f7d3442e7b0fa8f6dd2d270ee26545232ca816 (diff)
downloadrails-daa7e829e0222b8cd977610f13f049b1f0175fd1.tar.gz
rails-daa7e829e0222b8cd977610f13f049b1f0175fd1.tar.bz2
rails-daa7e829e0222b8cd977610f13f049b1f0175fd1.zip
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
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/nodes/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/nodes/node.rb b/lib/arel/nodes/node.rb
index 4faace3782..84dcb1cdf5 100644
--- a/lib/arel/nodes/node.rb
+++ b/lib/arel/nodes/node.rb
@@ -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