{"comment":{"position":null,"created_at":"2011-10-10T16:39:29Z","body":"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.\r\n\r\nPartial callstack:\r\n\r\n```\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1299:in `table_exists?'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1438:in `inspect'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:114:in `full_name'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:114:in `name'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:124:in `link'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:97:in `print_stack'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:105:in `print_stack'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `each'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `print_stack'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:105:in `print_stack'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `each'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `print_stack'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:105:in `print_stack'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `each'\r\n\tfrom /Users/cody/.gem/ruby/1.8/gems/ruby-prof-0.10.6/bin/../lib/ruby-prof/call_stack_printer.rb:104:in `print_stack'\r\n```","line":null,"commit_id":"3405c0cae5bd0c3146bdf04b911edddea7a4978b","updated_at":"2011-10-10T16:39:29Z","url":"https://api.github.com/repos/ccutrer/ruby-prof/comments/641672","id":641672,"path":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/e05a957ac89d9531a62482b0c0428884?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/ccutrer","id":191320,"login":"ccutrer"}},"legacy":{"commit":"3405c0cae5bd0c3146bdf04b911edddea7a4978b","comment_id":641672}}