I solved this by specifying the version of my gem 'newrelic_rpm' .I still can't figure out why I had to do so to solve my issue.
On Tuesday, May 14, 2013 12:37:06 PM UTC+5:30, sith wrote: > > While running rake precompile:assets i'm getting the following error > > This is the error message: > rake assets:precompile:all RAILS_ENV=production > rake aborted! > undefined local variable or method `establish_connection' for > ActiveRecord::Base:Class > > > Please help > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8dd9259b-5279-480c-8f5f-1fe718d2e809%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.

