From: Gary Wright Date: 2010-01-19T07:37:41+09:00 Subject: Re: Question about some changes from Ruby 1.8.6 to Ruby 1.9 On Jan 18, 2010, at 5:15 PM, Alpha Blue wrote: > Before: > > named_scope :private_pages, > :conditions => 'pages.parent_id IS NULL and pages.subpage_id IS NULL', > :order => 'pages.position', > :include => {:subpages, :subofsubs} > > After: > > named_scope :private_pages, > :conditions => 'pages.parent_id IS NULL and pages.subpage_id IS NULL', > :order => 'pages.position', > :include => [:subpages, :subofsubs] Those two :include options are not equivalent. You want: :include => {:subpages => :subofsubs} for the Ruby 1.9 version to be equivalent to the 1.8 version. Gary Wright