diff options
author | Adam H <adam@ol5279.olcc.lan> | 2012-01-20 10:10:09 -0500 |
---|---|---|
committer | Adam H <adam@ol5279.olcc.lan> | 2012-01-20 10:10:09 -0500 |
commit | daa7e829e0222b8cd977610f13f049b1f0175fd1 (patch) | |
tree | 128aca6ef824ced071b2b972891f9828697ccc02 /lib/arel | |
parent | 34f7d3442e7b0fa8f6dd2d270ee26545232ca816 (diff) | |
download | rails-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.rb | 2 |
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 |