Skip to content

Commit

Permalink
while using activerecord-sqlserver-adapter 3.1.5 with Rails 3.1 with …
Browse files Browse the repository at this point in the history
…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
Adam H committed Jan 20, 2012
1 parent 34f7d34 commit daa7e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arel/nodes/node.rb
Expand Up @@ -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
Expand Down

0 comments on commit daa7e82

Please sign in to comment.