millisami
unread,Jul 19, 2010, 3:05:52 PM7/19/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pickle
Hi,
How can I use pickle with polymorphic associations?
vendor.rb
has_many :activities, :as => :tracker
campaign.rb
has_many :activities, :as => :trackable
class Activity < ::ActiveRecord::Base
belongs_to :tracker, :polymorphic => true
belongs_to :trackable, :polymorphic => true
end
I want to assert it!
And an activity should exist with vendor: the first vendor, client:
the first client
Is this the way?