clyfe/acts_as_nested_interval — pull request #3 by kidlab (2012-08-19 10:03:42+00:00)
Title: Fix problem with activerecord-oracle_enhanced-adapter

Here is my new method ancestors in lib/acts_as_nested_interval/instance_methods.rb:
```ruby
def ancestors
sqls = []
p, q = lftp, lftq
while p != 0
x = p.inverse(q)
p, q = (x * p - 1) / q, x
sqls << "lftq = #{q} AND lftp = #{p}"
end
unless sqls.blank?
nested_interval_scope.where(sqls * ' OR ')
else
nested_interval_scope.limit(0)
end
end
```
All test cases are passed.