Ruby on rails stack level too deep
===

Consider following model


**class Category < ActiveRecord::Base**

// nothing in the model

**end**

**>> rails c**

**>> Category.all**     // works fine

but when i do as below it throws an error that "stack level too deep"

**>>Category.order("updated_at DESC")** // you should assume syntax is right

I am having this error, after upgrading ruby to 1.9.3 from 1.8.7 and rails to 3.2.0 from 3.0.4.
It was working fine before i upgraded, no code change at all, only versions are upgraded

However i have another project on my machine with old versions and facing no error there.


**Apparently it looks like problem is because of upgraded versions but not sure, I have** 
**read many threads on stackoverflow but did not get satisfactory answer.**


Please help i have already spent considerable time on fixing this issue with no success
