[Rails] Default scope on associations

2012-06-29 Thread venkata reddy
Hi all, Recently i am upgrading one of my rails app to 3.2.6. It seems the dafault_scope with options has been deprecated. i have a scope like this default_scope :include = [:campaign, :site], :order = :'sites.name' in a relational model campaign_site which giving this error

Re: [Rails] Default scope on associations

2012-06-29 Thread Sam Serpoosh
Perception 1: I'm not sure but according to the Sql Query that you put here it seems that there's a table in your application database called campaign_sites not sites (or maybe you have another table sites which can't be perceived from this report here or you're doing kind of an aliasing or