ccutrer/ruby-prof — comment on commit 3405c0cae5bd0c3146bdf04b911edddea7a4978b
File:  line 0
By ccutrer:

I'm not sure how it happens, but full_name ends up calling an ActiveRecord method (inspect), which tries to access a database, but the environment isn't set up correctly, so it throws an exception.

Partial callstack:

```
from /Users/cody/.gem/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1299:in `table_exists?'
from /Users/cody/.gem/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1438:in `inspect'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:114:in `full_name'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:114:in `name'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:124:in `link'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:97:in `print_stack'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:105:in `print_stack'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `each'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `print_stack'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:105:in `print_stack'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `each'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `print_stack'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:105:in `print_stack'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `each'
from /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `print_stack'
```