# Tough activerecord problem

**URL:** <https://www.ruby-forum.com/t/tough-activerecord-problem/50688>\
**Category:** Rails\
**Created:** [December 19, 2005, 11:49pm UTC](https://www.ruby-forum.com/t/tough-activerecord-problem/50688 "2005-12-19T23:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philswenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Post date:** [December 19, 2005, 11:49pm UTC](https://www.ruby-forum.com/t/tough-activerecord-problem/50688/1 "2005-12-19T23:49:42Z")

</div>

I have an application that is using active record outside of rails. the  
app  
works fine w/o the activerecord code, but when I added activerecord to  
the  
mix I started having trouble with constants not being recognized, e.g.:

```
 [echo] 1) Error:

 [echo] 

```

test\_pipeline\_cruncher(IntradayCruncher::TestPipelineCruncher):

```
 [echo] NameError: uninitialized constant INFO

 [echo]

```

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/depend  
encies.rb:200:in `const\_missing’

It seems like there is a clash between our Log4r and ActiveRecord  
constants.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![philswenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Post date:** [December 19, 2005, 11:53pm UTC](https://www.ruby-forum.com/t/tough-activerecord-problem/50688/2 "2005-12-19T23:53:19Z")

</div>

Phil S. wrote:

> Any thoughts?

Can you possibly give us a larger backtrace? Instead of just in  
dependencies.rb

---

<div class="post-metadata">

**Author:** ![philswenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Post date:** [December 20, 2005, 12:52am UTC](https://www.ruby-forum.com/t/tough-activerecord-problem/50688/3 "2005-12-20T00:52:59Z")

</div>

Sure thing:

test:  
[exec] Result: 1  
[echo] Test Output:  
[echo] Database Connection established  
[echo] Loaded suite  
C:/dev/build/app/IntradayCruncher/test/ts\_intraday\_cruncher  
[echo] Started  
[echo] …EE  
[echo] Finished in 0.75 seconds.  
[echo]  
[echo] 1) Error:  
[echo]  
test\_pipeline\_cruncher(IntradayCruncher::TestPipelineCruncher):  
[echo] NameError: uninitialized constant INFO  
[echo]  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/depend  
encies.rb:200:in `const_miss ing' [echo] C:\dev\build\app\IntradayCruncher\lib\common/logging.rb:40:in`init\_loggers’  
[echo]  
C:\dev\build\app\IntradayCruncher\test/tc\_pipeline\_cruncher.rb:34:in  
`test_pipeline_cruncher' [echo] [echo] 2) Error: [echo] test_time_cruncher(IntradayCruncher::TestTimeCruncher): [echo] NameError: uninitialized constant INFO [echo] c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/depend encies.rb:195:in`const\_miss  
ing’  
[echo]  
C:\dev\build\app\IntradayCruncher\lib\common/logging.rb:40:in  
`init_loggers' [echo] C:\dev\build\app\IntradayCruncher\test/tc_time_cruncher.rb:31:in`test\_time\_cruncher’  
[echo]  
[echo] 5 tests, 3 assertions, 0 failures, 2 errors
