Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit daa7e829e0222b8cd977610f13f049b1f0175fd1 1 parent 34f7d34
Adam H authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.