module Shop
     class Cart < ActiveRecord::Base
       has_many :cart_items, :dependent => :delete_all, :class=>
"Shop::CartItem"
     end
end

should work then...

On Oct 22, 7:47 am, Andrew White <[EMAIL PROTECTED]> wrote:
> On 22 Oct 2007, at 03:18, James Moore wrote:
>
> > This is two models.  What happens when you split this out into one
> > model per .rb file?
>
> It was in two files - I just combined it in the email for clarity.
>
> Andrew White


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to